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

feat: narrow errors type to list #1597

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

simPod
Copy link
Collaborator

@simPod simPod commented Aug 19, 2024

No description provided.

@spawnia spawnia merged commit 9e675b5 into webonyx:master Sep 26, 2024
@spawnia
Copy link
Collaborator

spawnia commented Sep 26, 2024

@simPod simPod deleted the narrow-errors branch September 26, 2024 08:48
@shadowhand
Copy link

TIL about list as a type hint. 🙇🏽‍♂️

@simPod
Copy link
Collaborator Author

simPod commented Sep 26, 2024

@shadowhand
Copy link

@simPod ah, because list has only existed since phpstan 1.9.0 and later. I knew of Foo[] but not list<Foo>. 👍🏼

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