From cb4fb8f79dc8f6fe311f82afe71a7385263e0c01 Mon Sep 17 00:00:00 2001 From: Olivier Gorzalka Date: Tue, 27 Oct 2026 10:02:31 +0100 Subject: [PATCH] chore: harness 0.1.6, and the dependency analysis blocks The dependency analysis passes with the harness preset and this package's own composer-dependency-analyser.php, each exception with its reason. Still reported only: Rector. --- .github/workflows/harness.yml | 2 +- .harness.json | 3 +-- composer-dependency-analyser.php | 18 ++++++++++++++++++ composer.json | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 composer-dependency-analyser.php diff --git a/.github/workflows/harness.yml b/.github/workflows/harness.yml index 178965d..623ab53 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.4 + uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.6 permissions: contents: read diff --git a/.harness.json b/.harness.json index 1df732b..1e2f1a1 100644 --- a/.harness.json +++ b/.harness.json @@ -9,7 +9,6 @@ "phpstan_baseline": 0 }, "observed": [ - "Rector", - "Dependency analysis" + "Rector" ] } diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php new file mode 100644 index 0000000..d075f48 --- /dev/null +++ b/composer-dependency-analyser.php @@ -0,0 +1,18 @@ +ignoreUnknownClassesRegex('~^(ActionScheduler|Cron_Event_Command$)~') + // illuminate/collections and the discovery package's spatie/php-structure-discoverer come with pollora/discovery and the framework. + ->ignoreErrorsOnPackages(['illuminate/collections', 'spatie/php-structure-discoverer'], [ErrorType::SHADOW_DEPENDENCY]) + // ScheduleFake is a testing helper: it asserts with PHPUnit, which every project that tests has. + ->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::SHADOW_DEPENDENCY]); diff --git a/composer.json b/composer.json index 01c5d53..6b25311 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "mockery/mockery": "^1.6.12", "pestphp/pest": "^3.8.2", "phpstan/phpstan": "^2.1.16", - "pollora/harness": "^0.1.4", + "pollora/harness": "^0.1.6", "szepeviktor/phpstan-wordpress": "^2.0" }, "autoload": {