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

Make Collector return type more explicit #94

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Sep 16, 2024

while the previous return type was correct, it did not explicitly state/protect you from someone changing the collector and make it return a empty array.

thats a major problem which can happen, and I want to make sure this error will not bite you, like it did in my projects.

for in-detail context see phpstan/phpstan#11701 (comment)

@staabm staabm marked this pull request as ready for review September 16, 2024 16:21
@janedbal janedbal merged commit 4d432b2 into shipmonk-rnd:master Sep 16, 2024
12 checks passed
@janedbal
Copy link
Member

Thanks!

@staabm staabm deleted the patch-1 branch September 16, 2024 16:46
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.

2 participants