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

How to use Bladestan? resources/views vs. app

szepeviktor opened this issue · comments

What is the intended usage? May I use both? What is the real difference in findings?

phpstan analyze -c vendor/tomasvotruba/bladestan/config/extension.neon -l max resources/views/
phpstan analyze -c vendor/tomasvotruba/bladestan/config/extension.neon -l max app/

I use simply vendor/bin/phpstan

I think Bladstan works by analyzing .php files in app/ as resources/views/ don't have template variables.

I need to work on E2E tests.
Would you merge it?

Yes, that's why no change is needed in typical setup.

Feel free to send it, sure 👍