diff --git a/.github/workflows/harness.yml b/.github/workflows/harness.yml index bcacc6b..c62125a 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.15 + uses: Pollora/harness/.github/workflows/php-package.yml@v0.1.19 permissions: contents: read diff --git a/composer.json b/composer.json index dae5a35..ccc47de 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "pestphp/pest": "^3.8", "php-stubs/wordpress-stubs": "^7.1", "phpstan/phpstan": "^2.1", - "pollora/harness": "^0.1.15", + "pollora/harness": "^0.1.19", "szepeviktor/phpstan-wordpress": "^2.0" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1d0f0ba..72260e8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -11,6 +11,9 @@ tests/Feature + + tests/Arch.php + diff --git a/src/Activation.php b/src/Activation.php index 913cad0..0ef53a2 100644 --- a/src/Activation.php +++ b/src/Activation.php @@ -7,6 +7,7 @@ use Fruitcake\LaravelDebugbar\LaravelDebugbar; use Illuminate\Contracts\Foundation\Application; use Illuminate\Http\Request; +use Illuminate\Support\Env; /** * Whether Pollora's tabs run for this request. @@ -39,7 +40,7 @@ public static function shouldRun(Application $app): bool // there yet. $enabled = $config->has('debugbar.enabled') ? value($config->get('debugbar.enabled')) - : env('DEBUGBAR_ENABLED'); + : Env::get('DEBUGBAR_ENABLED'); return (bool) ($enabled ?? $config->get('app.debug')); }