Open heidkaemper opened 2 months ago
This will likely be because most of our interfaces are empty or don't include all of the methods, like this one.
We can fix this by adding the methods to the interfaces.
Yea, makes sense. It's not really an issue but a improvement suggestion. Being able to use tools like PHPStan would definitely be very nice.
I've moved this to the statamic/ideas
repository since this is more of a feature request/improvement, than a bug.
Bug description
When executing queries on Statamic content repositories, tools like PHP Intelephense and Larastan report errors like
Undefined method ‘where’
.The code above works, but quality checks and autocomplete do not. Is there a reason for this? Is it intentional?
How to reproduce
Some examples from a fresh Statamic installation:
The where(), orderBy() and can() methods are marked as undefined.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response