diff --git a/phpstan.dist.neon b/phpstan.dist.neon index 22710f59..3e2e4c01 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -1,5 +1,3 @@ -# Running PHPStan needs ext-relay. - includes: - vendor/szepeviktor/phpstan-wordpress/extension.neon diff --git a/tests/PHPStan/bootstrap.php b/tests/PHPStan/bootstrap.php index f9b6307c..bc71349e 100644 --- a/tests/PHPStan/bootstrap.php +++ b/tests/PHPStan/bootstrap.php @@ -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 = './';