Skip to content

chore(harness): update the harness to v0.1.44 - #43

Merged
ogorzalka merged 2 commits into
mainfrom
chore/harness-0.1.44
Dec 6, 2026
Merged

ogorzalka merged 2 commits into
mainfrom
chore/harness-0.1.44

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Updates the harness to v0.1.44 (PHPStan 2.4 with Rector 2.9.3, php-parser ^5.9, the Rector preset skips InlineIfToExplicitIfRector, earlyReturn no longer passed).

What changes

  • .github/workflows/harness.yml ref @v0.1.44; composer.json pollora/harness ^0.1.44.
  • WpCliDiscovery::extractMethodDescription(): $description['short'] !== '' && $description['short'] !== '0' becomes $description['short'] !== ''. PHPStan 2.4 reports the second comparison as always true: short is assigned in one place only, from a line that the same branch has just checked is neither '' nor '0', so it can never hold '0'. No behaviour changes, so no new test: the existing WpCliDiscoveryDetailsTest cases (a 0 line before and inside the long description) pin it.

What it proves

The Harness job of this pull request runs every gate on the new harness with the PHPStan 2.4 and Rector 2.9.3 that CI resolves.

What it does not prove

No behaviour change is claimed or tested beyond the existing suite.

@ogorzalka
ogorzalka merged commit 73dfe57 into main Dec 6, 2026
17 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