TomasVotruba / bladestan

PHPStan analysis for Blade templates
https://tomasvotruba.com/blog/introducing-bladestan-phpstan-analysis-of-blade-templates/
MIT License
286 stars 13 forks source link

File ends with a trailing whitespace. #42

Closed realodix closed 1 year ago

realodix commented 1 year ago

What can I do to fix this error?

noname-crop

-- ----------------------------------------------------------------------------------------------------------------------
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

noname-craop

AJenbo commented 1 year ago

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