1 | <?php |
||
13 | class ApplicationUserListener implements ListenerInterface, LoggerAwareInterface |
||
14 | { |
||
15 | use LoggerAwareTrait; |
||
16 | |||
17 | /** |
||
18 | * @var MiniGameUserFinder |
||
19 | */ |
||
20 | private $finder; |
||
21 | |||
22 | /** |
||
23 | * Constructor |
||
24 | * |
||
25 | * @param MiniGameUserFinder $finder |
||
26 | */ |
||
27 | public function __construct( |
||
33 | |||
34 | /** |
||
35 | * Handle an event. |
||
36 | * |
||
37 | * @param EventInterface $event |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | public function handle(EventInterface $event) |
||
53 | |||
54 | /** |
||
55 | * Check whether the listener is the given parameter. |
||
56 | * |
||
57 | * @param mixed $listener |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function isListener($listener) |
||
65 | } |
||
66 |
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.