We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
13 | class ExtensibleSchema extends Schema |
||
14 | { |
||
15 | 95 | public function __construct($config) |
|
21 | |||
22 | /** @var SchemaExtensionInterface[] */ |
||
23 | private $extensions = []; |
||
24 | |||
25 | /** |
||
26 | * @param SchemaExtensionInterface[] $extensions |
||
27 | * |
||
28 | * @return $this |
||
29 | */ |
||
30 | 91 | public function setExtensions(array $extensions) |
|
39 | |||
40 | /** |
||
41 | * @param SchemaExtensionInterface $extension |
||
42 | */ |
||
43 | 84 | public function addExtension(SchemaExtensionInterface $extension): void |
|
47 | |||
48 | /** |
||
49 | * @return $this |
||
50 | */ |
||
51 | 82 | public function processExtensions() |
|
59 | |||
60 | 95 | private function addDefaultFallBackToTypeLoader(SchemaConfig $schemaConfig): SchemaConfig |
|
83 | } |
||
84 |
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.