As things are components are analyzed from the context of there associated class. This however leaves out anonymous Components since they do not have a corresponding class which render them by calling view().
The solution here (I have not yet investigated it) is probably to inline them in a similar fashion to how @include directives are being handled.
I might be able to work on this, but do not have a time line for when that would happen as there are a few other things we need to work on at the moment.
As a side note we have rolled out Bladestan on our code and it's now passing 24 blade files at level 9, 556 at level 1, and 391 at level 3... minus how ever many anonymous components we have :)
As things are components are analyzed from the context of there associated class. This however leaves out anonymous Components since they do not have a corresponding class which render them by calling
view()
.https://laravel.com/docs/10.x/blade#anonymous-components
The solution here (I have not yet investigated it) is probably to inline them in a similar fashion to how
@include
directives are being handled.I might be able to work on this, but do not have a time line for when that would happen as there are a few other things we need to work on at the moment.
As a side note we have rolled out Bladestan on our code and it's now passing 24 blade files at level 9, 556 at level 1, and 391 at level 3... minus how ever many anonymous components we have :)