Skip to content
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

Add support for list shapes #175

Merged
merged 2 commits into from
Jan 29, 2023
Merged

Add support for list shapes #175

merged 2 commits into from
Jan 29, 2023

Conversation

zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Jan 29, 2023

strict-array and strict-list were canceled, but list shapes was introduced in Psalm 5.
It looks like you can merge some of the #161 patch by @danog.

refs phpstan/phpstan#8789

int,
string
}',
new ArrayShapeNode([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to know the array shape "kind" (array or list) at the ArrayShapeNode class.

@ondrejmirtes ondrejmirtes merged commit 57090cf into phpstan:1.9.x Jan 29, 2023
@ondrejmirtes
Copy link
Member

Thank you.

@zonuexe zonuexe deleted the feature/list-shapes branch January 29, 2023 14:41
@zonuexe zonuexe mentioned this pull request Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants