Skip to content

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Jun 13, 2025

@VincentLanglet VincentLanglet marked this pull request as ready for review June 13, 2025 07:05
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm
Copy link
Contributor

staabm commented Jun 13, 2025

btw: since phpunit got upgraded on the PHPStan 2.x branch, we need to be careful to send PRs to PHPStan 1.12.x only when easy mergabe into 2.x (attributes got added etc)

@VincentLanglet
Copy link
Contributor Author

btw: since phpunit got upgraded on the PHPStan 2.x branch, we need to be careful to send PRs to PHPStan 1.12.x only when easy mergabe into 2.x (attributes got added etc)

Only change is this attribute
https://github.com/phpstan/phpstan-src/blob/2.1.x/tests/PHPStan/Analyser/LooseConstComparisonPhp7Test.php#L24

I dunno if it will even create a conflict but if ondrej ask, I can target 2.1.x instead :)

@ondrejmirtes
Copy link
Member

I'd prefer this one only for 2.1.x :) Thanks.

@VincentLanglet VincentLanglet changed the base branch from 1.12.x to 2.1.x July 17, 2025 12:46
@VincentLanglet
Copy link
Contributor Author

Rebased on 2.1.x @ondrejmirtes

@ondrejmirtes ondrejmirtes merged commit 6881423 into phpstan:2.1.x Jul 17, 2025
411 of 418 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

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.

Return type of substr with constants depends on runtime PHP version instead of analyzed PHP version

4 participants