| 1 | <?php |
||
| 8 | class AppsServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap the service provider. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | 2 | public function boot() |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Register macros. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | protected function registerMacros() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Publish assets from package. |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | 2 | protected function publishAssets() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Register the service provider. |
||
| 51 | * |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | 2 | public function register() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Setup package assets. |
||
| 66 | * |
||
| 67 | * @return void |
||
| 68 | */ |
||
| 69 | 2 | protected function setupAssets() |
|
| 77 | } |
||
| 78 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.jsonfile (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.jsonto 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
requireorrequire-devsection?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceofchecks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.