From 8d2ee4a7f3044256a0a6182d235d0a20a6a6b1f3 Mon Sep 17 00:00:00 2001 From: Pollora maintainer Date: Fri, 4 Dec 2026 11:50:28 +0100 Subject: [PATCH] fix: keep PHPStan below 2.4, which Rector does not run with (0.1.43) --- .github/workflows/php-package.yml | 2 +- .github/workflows/template.yml | 2 +- CHANGELOG.md | 6 ++++++ README.md | 4 ++-- composer.json | 2 +- tests/Unit/PhpStanConstraintTest.php | 12 ++++++++++++ 6 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 tests/Unit/PhpStanConstraintTest.php diff --git a/.github/workflows/php-package.yml b/.github/workflows/php-package.yml index ffc28bc..9df9f3d 100644 --- a/.github/workflows/php-package.yml +++ b/.github/workflows/php-package.yml @@ -6,7 +6,7 @@ # # jobs: # harness: -# uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.42 +# uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.43 # permissions: # contents: read # diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml index d6839d1..508d97f 100644 --- a/.github/workflows/template.yml +++ b/.github/workflows/template.yml @@ -13,7 +13,7 @@ # # jobs: # harness: -# uses: Pollora/harness/.github/workflows/template.yml@v0.1.42 +# uses: Pollora/harness/.github/workflows/template.yml@v0.1.43 # with: # mode: enforce # permissions: diff --git a/CHANGELOG.md b/CHANGELOG.md index d264be7..5e8c8b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [0.1.43] - 2026-12-04 + +### Fixed + +- **PHPStan is kept below 2.4 for now.** With 2.4.0, released today, Rector 2.8 and 2.9 stop on "array_values(): Argument #1 ($array) must be of type array, null given", so the Rector gate failed in every repository that resolves its dependencies without a lock, whatever the change. The bound will be lifted once a Rector release runs with it; the new findings PHPStan 2.4 reports are to be handled then. + ## [0.1.42] - 2026-12-03 ### Changed diff --git a/README.md b/README.md index e7fdade..523726b 100644 --- a/README.md +++ b/README.md @@ -400,7 +400,7 @@ permissions: {} jobs: harness: - uses: Pollora/harness/.github/workflows/template.yml@v0.1.42 + uses: Pollora/harness/.github/workflows/template.yml@v0.1.43 with: mode: enforce # observe reports and never blocks observed: '' # gates reported but never blocking: secrets, style, security, audit, ratchet @@ -459,7 +459,7 @@ Pollora packages test against Brain Monkey, which doubles WordPress. That is fas ```yaml jobs: harness: - uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.42 + uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.43 with: wordpress-integration: tests/Integration # the suite; empty (default) = off wordpress-version: latest # latest (default), nightly, 6.9, 6.9.1 diff --git a/composer.json b/composer.json index ece94be..1624828 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "ext-tokenizer": "*", "laravel/pint": "^1.22", "nikic/php-parser": "^5.6", - "phpstan/phpstan": "^2.1", + "phpstan/phpstan": "^2.1 <2.4", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-strict-rules": "^2.0", "rector/rector": "~2.8.1 || ~2.9.0", diff --git a/tests/Unit/PhpStanConstraintTest.php b/tests/Unit/PhpStanConstraintTest.php new file mode 100644 index 0000000..870c70b --- /dev/null +++ b/tests/Unit/PhpStanConstraintTest.php @@ -0,0 +1,12 @@ +toBe('^2.1 <2.4'); +});