Upgrade L9 to L10
Hi,
I upgraded our filament project from laravel 9 to laravel 10, however PHPStan is going crazy now.
Every resource has these kind of errors
Does anyone have an idea?
4 Replies
That's not really a filament issue, that's more PHP/Laravel. All the issues are related to Models not Filament. If it works, then the IDE/phpStan is not picking up the stubs to know the calls exist
yeah its not a filament issue
the solution is to use ::query() to initialse a query i think
otherwise it uses a magic static method call which phpstan doesn’t understand
Hmm, it did understand before in L9 lol
Anyways, will try this out, thanks Dan! 🙂
larastan probably got upgraded abilities