Weebly / phpstan-laravel

Laravel plugins for PHPStan
BSD 2-Clause "Simplified" License
51 stars 22 forks source link

Fixing problem when core LARAVEL_START constant is used #14

Closed pablorsk closed 6 years ago

pablorsk commented 6 years ago

Laravel has a constant defined on ./artisan and ./public/index.php:

define('LARAVEL_START', microtime(true));

If you use this contant on your code, you get errors like:

 ------ ---------------------------------------------------------------- 
  Line   app/Providers/AppServiceProvider.php                            
 ------ ---------------------------------------------------------------- 
  24     Constant LARAVEL_START not found.                               
  26     Constant LARAVEL_START not found.                               
 ------ ----------------------------------------------------------------