1 | <?php |
||||||
2 | use Fns\GetMessage\TimeoutStrategies\ExponentialBackoff; |
||||||
3 | use Fns\SendMessageRequest; |
||||||
4 | |||||||
5 | // PSR-16 |
||||||
6 | $cache = new Sarahman\SimpleCache\FileSystemCache(__DIR__); |
||||||
0 ignored issues
–
show
|
|||||||
7 | $master_token = ''; |
||||||
8 | $auth = new Fns\Auth\AuthRequest($master_token, $cache); |
||||||
9 | $auth->authenticate(); |
||||||
10 | |||||||
11 | // prepare check |
||||||
12 | $ticket = new \Fns\Ticket(); |
||||||
13 | $ticket->setDate(''); |
||||||
14 | $ticket->setFiscalDocumentId(11111); |
||||||
15 | $ticket->setFiscalSign(111111111); |
||||||
16 | $ticket->setFn(1111111111111111); |
||||||
17 | $ticket->setSum(11111); |
||||||
18 | $ticket->setTypeOperation(1); |
||||||
19 | |||||||
20 | // build new soap client |
||||||
21 | $client = new \Fns\ClientSoap('unique', $cache); |
||||||
22 | |||||||
23 | |||||||
24 | $message = new \Fns\GetMessage\GetTicketRequest(); |
||||||
0 ignored issues
–
show
The type
Fns\GetMessage\GetTicketRequest was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||
25 | $message->setTimeoutStrategy(new ExponentialBackoff($message)); |
||||||
26 | // или добавить максимальное значение |
||||||
27 | $message->setTimeoutStrategy(new ExponentialBackoff($message, 600000000)); |
||||||
28 | |||||||
29 | $request = new SendMessageRequest($client, $message); |
||||||
30 | $request->setTicket($ticket); |
||||||
31 | $response = $request->execute(); |
||||||
32 | |||||||
33 | if ($response->getCode() === 200) { |
||||||
34 | dump(json_decode($response->getBody())); |
||||||
0 ignored issues
–
show
The function
dump was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
35 | } |
||||||
36 | |||||||
37 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths