From 7ed45a2bdd74149b758cba0cdb89c145fe61fb2c Mon Sep 17 00:00:00 2001 From: Pollora maintainer Date: Sun, 6 Dec 2026 18:18:50 +0100 Subject: [PATCH 1/2] chore(harness): update the harness to v0.1.44 --- .github/workflows/harness.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/harness.yml b/.github/workflows/harness.yml index d9bebc8..4ca7d48 100644 --- a/.github/workflows/harness.yml +++ b/.github/workflows/harness.yml @@ -14,6 +14,6 @@ permissions: {} jobs: harness: - uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.43 + uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.44 permissions: contents: read diff --git a/composer.json b/composer.json index d77ef3f..8a846f6 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "mockery/mockery": "^1.6.12", "pestphp/pest": "^3.8.2", "phpstan/phpstan": "^2.1.16", - "pollora/harness": "^0.1.43", + "pollora/harness": "^0.1.44", "szepeviktor/phpstan-wordpress": "^2.0", "wp-cli/wp-cli": "^2.12" }, From 0f4fc18b33bbc530ee438e82c39fd97b7602f4b5 Mon Sep 17 00:00:00 2001 From: Pollora maintainer Date: Sun, 6 Dec 2026 18:20:08 +0100 Subject: [PATCH 2/2] refactor: drop a comparison PHPStan 2.4 proves always true --- src/Infrastructure/Services/WpCliDiscovery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/Services/WpCliDiscovery.php b/src/Infrastructure/Services/WpCliDiscovery.php index 17e7416..6ef95d1 100644 --- a/src/Infrastructure/Services/WpCliDiscovery.php +++ b/src/Infrastructure/Services/WpCliDiscovery.php @@ -308,7 +308,7 @@ private function extractMethodDescription(string $docComment): array } // After short description, collect long description - if ($description['short'] !== '' && $description['short'] !== '0') { + if ($description['short'] !== '') { $inLongDesc = true; if ($line !== '' && $line !== '0' || $longDescLines !== []) { $longDescLines[] = $line;