1 | <?php |
||
22 | class ValueInvocation |
||
23 | { |
||
24 | /** |
||
25 | * @var \SplQueue |
||
26 | */ |
||
27 | private $stack; |
||
28 | |||
29 | /** |
||
30 | * ValueInvocation constructor. |
||
31 | */ |
||
32 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * @param mixed $value |
||
39 | * @return mixed |
||
40 | * @throws \Railt\Io\Exception\ExternalFileException |
||
41 | * @throws \InvalidArgumentException |
||
42 | */ |
||
43 | public function invoke($value) |
||
56 | |||
57 | /** |
||
58 | * @param Definition $value |
||
59 | * @throws \Railt\Io\Exception\ExternalFileException |
||
60 | */ |
||
61 | private function checkRecursiveReferring(Definition $value): void |
||
70 | |||
71 | /** |
||
72 | * @param Definition $definition |
||
73 | * @return bool |
||
74 | */ |
||
75 | private function has(Definition $definition): bool |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | private function getStackAsString(): string |
||
95 | |||
96 | /** |
||
97 | * @param Definition $definition |
||
98 | */ |
||
99 | private function push(Definition $definition): void |
||
103 | |||
104 | /** |
||
105 | * @param InputInvocation $input |
||
106 | * @return InputInvocation |
||
107 | * @throws \InvalidArgumentException |
||
108 | * @throws \Railt\Io\Exception\ExternalFileException |
||
109 | */ |
||
110 | private function invokeInput(InputInvocation $input): InputInvocation |
||
129 | } |
||
130 |
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.