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

How to use Bladestan? resources/views vs. app #44

Closed szepeviktor closed 1 year ago

szepeviktor commented 1 year ago

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/
TomasVotruba commented 1 year ago

I use simply vendor/bin/phpstan

szepeviktor commented 1 year ago

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?

TomasVotruba commented 1 year ago

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

Feel free to send it, sure 👍