TomasVotruba / bladestan

PHPStan analysis for Blade templates

Home Page:https://tomasvotruba.com/blog/introducing-bladestan-phpstan-analysis-of-blade-templates/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File ends with a trailing whitespace.

realodix opened this issue · comments

commented

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

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