Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/php-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions tests/Unit/PhpStanConstraintTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

// PHPStan 2.4.0 makes Rector 2.8 and 2.9 crash ("array_values(): Argument #1 ($array) must be of type array, null given"),
// and a repository without a lock resolves the newest one: the gates broke everywhere the day it was released.
// To lift once a Rector release runs with it.
it('keeps PHPStan below the release Rector does not run with', function (): void {
$composer = json_decode((string) file_get_contents(dirname(__DIR__, 2).'/composer.json'), true, flags: JSON_THROW_ON_ERROR);

expect($composer['require']['phpstan/phpstan'])->toBe('^2.1 <2.4');
});
Loading