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

Add possibility to name paths with namespace #40

Open robotomarvin opened 1 year ago

robotomarvin commented 1 year ago

I have a case where I need to distinguish between namespaced views. I'm using nwidart/laravel-modules and I have conflicting names without namespacing between these modules. Can we add those namespaces in config and parse them accordingly? To this to work I also reverted removing the namespace from view name, maybe we could do this only on non-specified namespaced? If you are interested in this addition I can work on this more and get it ready for merge.

GuardsmanPanda commented 1 year ago

I have an application that makes extensive usage of namespaced views, I would like to use this projectm, but I am blocked by this issue, so it would be lovely to have this fixed.

TomasVotruba commented 1 year ago

Hi, thanks for the feature :+1:

Could you add tests so we have it covered against future regresions?

TomasVotruba commented 1 year ago

Hi @robotomarvin ,

could you have a look on this? I'd like to merge it :)