1 | <?php declare(strict_types=1); |
||
10 | abstract class AbstractExchange |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | public const TYPE_DIRECT = 'direct'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | public const TYPE_HEADERS = 'headers'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | public const TYPE_FANOUT = 'fanout'; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public const TYPE_TOPIC = 'topic'; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | public const AVAILABLE_TYPES = [self::TYPE_DIRECT, self::TYPE_HEADERS, self::TYPE_FANOUT, self::TYPE_TOPIC]; |
||
36 | |||
37 | /** |
||
38 | * @throws BunnyException |
||
39 | */ |
||
40 | final public function declare(Channel $channel): void |
||
56 | |||
57 | /** |
||
58 | * @throws BunnyException |
||
59 | */ |
||
60 | final public function declareBindings(Channel $channel): void |
||
82 | |||
83 | abstract protected function getName(): string; |
||
84 | |||
85 | /** |
||
86 | * @return ExchangeBind[] |
||
87 | */ |
||
88 | protected function getBindings(): array |
||
92 | |||
93 | protected function getType(): string |
||
97 | |||
98 | protected function isPassive(): bool |
||
102 | |||
103 | protected function isDurable(): bool |
||
107 | |||
108 | protected function isAutoDelete(): bool |
||
112 | |||
113 | protected function isInternal(): bool |
||
117 | |||
118 | protected function isNoWait(): bool |
||
122 | |||
123 | protected function getArguments(): array |
||
127 | } |
||
128 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.