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

phpstan-assert with count results in type loss #2811

Merged
merged 1 commit into from Dec 8, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Dec 8, 2023

@staabm staabm marked this pull request as ready for review December 8, 2023 13:45
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 34dfd6a into phpstan:1.10.x Dec 8, 2023
423 of 425 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@ondrejmirtes
Copy link
Member

This PR introduces a bug :( https://phpstan.org/r/cb084a8a-ee9d-435f-bc22-5987d9e46093

  1. In else it should be array{}
  2. Below if-else it should be list<stdClass>.

@staabm
Copy link
Contributor Author

staabm commented Dec 8, 2023

I will have a look

@staabm
Copy link
Contributor Author

staabm commented Dec 8, 2023

This PR introduces a bug :( phpstan.org/r/cb084a8a-ee9d-435f-bc22-5987d9e46093

how did you find this regresssion so fast?

@ondrejmirtes
Copy link
Member

@staabm I have a few proprietary projects that are tested continously after each commit with https://github.com/phpstan/phpstan/blob/1.11.x/.github/workflows/test-projects.yml so I inspect the failures afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants