Feature Request : Macros compatibility with larastan #15393
acornforth
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since commit
fdcbc71
introduced a new trait under Filament namespace to handle "Macroable" components, larastan can no longer correctly resolve these. (please see Original issue)The workaround is to add an ignore rule to phpstan config for each macro defined on Filament Components, however it would be a definite win to not have to do that.
I haven't dived deep enough into the code to understand what the new trait is doing that the original one didn't, but if it's not possible to go back to using
Illuminate\Support\Traits\Macroable
would you consider producing a phpstan extension for this case?Beta Was this translation helpful? Give feedback.
All reactions