1 | <?php |
||
8 | class PhpSmsServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Indicates if loading of the provider is deferred. |
||
12 | * |
||
13 | * @var bool |
||
14 | */ |
||
15 | protected $defer = true; |
||
16 | |||
17 | /** |
||
18 | * Bootstrap the application events. |
||
19 | */ |
||
20 | public function boot() |
||
32 | |||
33 | /** |
||
34 | * Register the service provider. |
||
35 | */ |
||
36 | public function register() |
||
53 | |||
54 | /** |
||
55 | * Get the services provided by the provider. |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | public function provides() |
||
63 | } |
||
64 |
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.