File ends with a trailing whitespace.
realodix opened this issue · comments
Kei commented
What can I do to fix this error?
-- ----------------------------------------------------------------------------------------------------------------------
Error
-- ----------------------------------------------------------------------------------------------------------------------
Internal error: Internal error: config in file G:\laragon\www\urlhub\app\Http\Middleware\RedirectIfAuthenticated.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md
Child process error (exit code 1):
Internal error: Internal error: config in file G:\laragon\www\urlhub\app\Providers\RouteServiceProvider.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md
Child process error (exit code 1):
But, When I disabled Bladestan, there is no error
Anders Jenbo commented
A decent portion of the files in the project I work on is also affected by this.
From what I can tell it happens if you have blade files with no code in them (just static content). I added a test for this so hopeful that will help someone look in to the issue: #45