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

Arrays: add generic type declaration for some(), every() and map() #298

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

JanTvrdik
Copy link
Contributor

@dg
Copy link
Member

dg commented Aug 5, 2023

OT: Do you know how to fix this?
image

@enumag
Copy link
Contributor

enumag commented Aug 5, 2023

Use object instead of \stdClass.

https://phpstan.org/writing-php-code/phpdoc-types#object-shapes

@JanTvrdik JanTvrdik force-pushed the array-some-every-generic branch from 322d9b9 to 0253ee3 Compare August 5, 2023 09:56
@dg dg merged commit 05dd5d6 into nette:master Aug 5, 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