- Notifications
You must be signed in to change notification settings - Fork46
Update the schema stub to use iterable for the fields and filters#308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:develop
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…rs methods, enhancing type consistency and clarity. Additionally, include the Filter contract for improved functionality.
lindyhopchris commentedMar 21, 2025
Thanks for the PR. I'm not sure it needs to be Do you have a specific reason for changing this? I.e. are you not returning |
shanginn commentedMar 22, 2025
yeah, you are right, array is a covariant of iterable. all I want to do is make PHPStan happy with the default generated schemas. |
In thecore/src/Core/Schema/Schema.php both
fieldsandfiltersreturns iterable, but stubs still generate them as arrays:abstract public function fields(): iterable;public function filters(): iterable