1 | <?php |
||
10 | class CurirParameterReader implements ParameterReader { |
||
11 | |||
12 | /** @var WebRequest */ |
||
13 | private $request; |
||
14 | |||
15 | public function __construct(WebRequest $request) { |
||
18 | |||
19 | /** |
||
20 | * IMPORTANT: files must be properly merged into the parameters |
||
21 | * |
||
22 | * @param Parameter $parameter |
||
23 | * @return mixed The serialized paramater |
||
24 | */ |
||
25 | public function read(Parameter $parameter) { |
||
28 | |||
29 | /** |
||
30 | * @param Parameter $parameter |
||
31 | * @return boolean |
||
32 | */ |
||
33 | public function has(Parameter $parameter) { |
||
36 | |||
37 | private function map($value) { |
||
56 | } |
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.