1 | <?php |
||
9 | class HashidServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | /** |
||
12 | * Register the service provider. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | 6 | public function register() |
|
23 | |||
24 | /** |
||
25 | * Setup package assets. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | 6 | protected function setupAssets() |
|
41 | |||
42 | /** |
||
43 | * Register service bindings. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | protected function registerServices() |
||
68 | |||
69 | /** |
||
70 | * Get singleton drivers classes. |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | 6 | protected function getSingletonDrivers() |
|
83 | |||
84 | /** |
||
85 | * Get non-singleton drivers classes. |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | 6 | protected function getNonSingletonDrivers() |
|
101 | |||
102 | /** |
||
103 | * Get the binding key for the driver class. |
||
104 | * |
||
105 | * @param string $class |
||
106 | * @return string |
||
107 | */ |
||
108 | 6 | protected function getBindingKeyForDriver($class) |
|
114 | |||
115 | /** |
||
116 | * Register console commands. |
||
117 | * |
||
118 | * @return void |
||
119 | */ |
||
120 | 6 | protected function registerCommands() |
|
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.