Repository navigation
Bump PHPStan to ^2.3.0 and fix compatible code - #8528
Merged
Merged
Conversation
Closed
Member
Author
|
@TomasVotruba fixed 👍 rector-laravel notice needs this PR merged and has immediate release first 👍 Could you remove the |
Member
|
Thank you, lets ship it 👍 |
Member
Author
|
@TomasVotruba I think we need new immediate release, will you create release or I need to create release? |
Member
|
I'll look into it 👍 |
pawell67
added a commit
to pawell67/phpstan
that referenced
this pull request
Oct 13, 2026
Both moved to PHPStan 2.3 (rectorphp/rector-src#8528); the pinned commits still expected the PHPStan 2.2 node callback order, so five rector-src and two rector-downgrade-php fixtures failed against 2.3.x. Locks regenerated with composer update on PHP 8.4, baselines regenerated with the current 2.3.x PHAR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pawell67
added a commit
to pawell67/phpstan
that referenced
this pull request
Oct 14, 2026
Both moved to PHPStan 2.3 (rectorphp/rector-src#8528); the pinned commits still expected the PHPStan 2.2 node callback order, so five rector-src and two rector-downgrade-php fixtures failed against 2.3.x. Locks regenerated with composer update on PHP 8.4, baselines regenerated with the current 2.3.x PHAR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
staabm
pushed a commit
to phpstan/phpstan
that referenced
this pull request
Oct 14, 2026
…ts on 2.3.x (#15468) * Update rector-src and rector-downgrade-php integration tests Both moved to PHPStan 2.3 (rectorphp/rector-src#8528); the pinned commits still expected the PHPStan 2.2 node callback order, so five rector-src and two rector-downgrade-php fixtures failed against 2.3.x. Locks regenerated with composer update on PHP 8.4, baselines regenerated with the current 2.3.x PHAR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * e2e/rector-autoload: do not rely on PHPStan's own str_contains() polyfill The job runs on PHP 7.4 and the analysed project has no polyfill for str_contains(). It used to be found because PHPStan declares its bundled symfony/polyfill-php80, which phpstan/phpstan-src@e7757dcae7 deliberately stopped exposing to the analysed code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Update laravel/framework integration tests The pinned commit still asserted literal keys for keyBy() and groupBy(preserveKeys: true) results, which relied on an accidental narrowing that phpstan/phpstan-src@91dcf7e805 removed. laravel/framework 13.x has updated those assertions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On composer update to phpstan 2.3.0 that released today: https://github.com/phpstan/phpstan/releases/tag/2.3.0
Now phpunit got error:
and PHPStan got notice:
This PR bump to PHPStan 2.3.0 and try to fix it.