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/harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .harness.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"phpstan_baseline": 0
},
"observed": [
"Rector",
"Dependency analysis"
"Rector"
]
}
18 changes: 18 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

/*
* ARCH-07: the harness preset (WordPress classes and functions, the tests), plus what is specific to this package.
*/
$configuration = require __DIR__.'/vendor/pollora/harness/presets/composer-dependency-analyser.php';

return $configuration
// Action Scheduler is a plugin and Cron_Event_Command belongs to WP-CLI: neither is a Composer dependency.
->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]);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading