Skip to content

Commit

Permalink
Actually test for ext-relay while running PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Feb 29, 2024
1 parent f9b58ce commit bb3225d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions phpstan.dist.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Running PHPStan needs ext-relay.

includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon

Expand Down
5 changes: 5 additions & 0 deletions tests/PHPStan/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

declare(strict_types=1);

if (!extension_loaded('relay')) {
error_log('Running PHPStan needs ext-relay.');
exit(2);
}

const HHVM_VERSION = '0.0.0';
const WPINC = 'wp-includes';
const WP_CONTENT_DIR = './';
Expand Down

0 comments on commit bb3225d

Please sign in to comment.