-
Notifications
You must be signed in to change notification settings - Fork 11
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for psalm and phpstan array and list shapes #27
Comments
I had always intended to add support for array shapes, but I ran out of steam at some point and never got to it. (And I guess I don't use them as much as I thought I would at that time. 😆) I would welcome a PR that adds support for array and list shapes, though! |
Does not include support for phpstan "object shapes" (see below) Ref: https://psalm.dev/docs/annotating_code/type_syntax/array_types/#array-shapes Ref: https://psalm.dev/docs/annotating_code/type_syntax/array_types/#list-shapes Ref: https://phpstan.org/writing-php-code/phpdoc-types#array-shapes Ref: https://phpstan.org/writing-php-code/phpdoc-types#object-shapes
Ah ha. I found an old branch where I had started on support for array shapes. It's now been dusted off and pushed to #39; please take a look and let me know what you think. |
Add support for a special format for list arrays
The text was updated successfully, but these errors were encountered: