Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 6, 2025

No description provided.

@staabm staabm marked this pull request as draft November 6, 2025 19:48
@staabm staabm marked this pull request as ready for review November 6, 2025 19:52
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

foreach ($haystackArrayTypes as $haystackArrayType) {
if ($haystackArrayType instanceof ConstantArrayType) {
foreach ($haystackArrayType->getValueTypes() as $i => $haystackArrayValueType) {
if (count($haystackArrayValueType->getFiniteTypes()) > 1 || $haystackArrayType->isOptionalKey($i)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this line was added with #3888 but deleting this line does not make any test fail..

@ondrejmirtes ondrejmirtes merged commit 911712a into phpstan:2.1.x Nov 6, 2025
623 of 638 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the fix2 branch November 6, 2025 20:58
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