Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Jul 27, 2025

@VincentLanglet VincentLanglet marked this pull request as ready for review July 27, 2025 22:01
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 62b95c6 into phpstan:2.1.x Jul 28, 2025
414 of 420 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

continue;
}

$value = version_compare($version1String->getValue(), $version2String->getValue(), $operatorValue);
Copy link
Member

Choose a reason for hiding this comment

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

Hey, here's bool and then it's used in $types[$value] which gets picked up with reportNonIntStringArrayKey: true. Can you please fix it? I' ignoring this issue in 2.1.x.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure: #4871

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.

version_compare() params and return type

3 participants