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
// The framework's facades: used only when Pollora is present (the class is checked first), absent when the package runs alone.
->ignoreUnknownClasses(['Pollora\Support\Facades\Action', 'Pollora\Support\Facades\Filter'])
// AsyncFake is a testing helper: it asserts with PHPUnit, which every project that tests has.
->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::SHADOW_DEPENDENCY])
// Closures are queued with laravel/serializable-closure when it is installed (suggested); the code checks class_exists() first.
->ignoreErrorsOnPackage('laravel/serializable-closure', [ErrorType::DEV_DEPENDENCY_IN_PROD]);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"mockery/mockery": "^1.6",
"pestphp/pest": "^v3.8.2",
"phpstan/phpstan": "^2.1.16",
"pollora/harness": "^0.1.4",
"pollora/harness": "^0.1.6",
"szepeviktor/phpstan-wordpress": "^2.0"
},
"suggest": {
Expand Down
Loading