TomasVotruba / bladestan

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

Add support for @each #64

Open AJenbo opened 1 year ago

AJenbo commented 1 year ago

@each is just a shorthand for @foreach + @include, it looks like this is not currently supported so might need a little work to get it working.

https://laravel.com/docs/10.x/blade#rendering-views-for-collections

TomasVotruba commented 1 year ago

That would be great 👍 Are you up to the challenge?

AJenbo commented 1 year ago

I'm not fully sure what the future holds here. Today we are rolling out the changes done to be compatible with Bladestan, how much more we will contribute to Bladestand depends a bit on how painful the team find the workarounds.