Skip to content

fix: keep PHPStan below 2.4, which Rector does not run with (0.1.43) - #144

Merged
ogorzalka merged 1 commit into
mainfrom
fix/phpstan-below-2.4
Dec 4, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
fix/phpstan-below-2.4

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

PHPStan 2.4.0, released on 2026-12-04, makes Rector 2.8.5 and 2.9.2 stop on array_values(): Argument #1 ($array) must be of type array, null given. A repository that resolves its dependencies without a lock gets it, so the Rector gate fails whatever the change (seen on Pollora/hornet#70, which touches no PHP).

  • phpstan/phpstan is now ^2.1 <2.4; Composer picks phpstan-deprecation-rules 2.0.6 accordingly.
  • A test pins the bound; it fails without the change.
  • Release 0.1.43: changelog dated, reusable workflows and README call the new tag.

To lift once a Rector release runs with PHPStan 2.4; its new findings are to be handled then.

@ogorzalka
ogorzalka merged commit 4cad1ad into main Dec 4, 2026
7 checks passed
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.

1 participant