mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-24 09:19:47 +01:00
Merge pull request #1813 from slepic/master
dont load phpstan-phpunit if phpunit not installed
This commit is contained in:
commit
3ecafd4054
@ -23,7 +23,7 @@ final class PHPStanServicesFactory
|
||||
|
||||
// possible path collision for Docker
|
||||
$phpstanPhpunitExtensionConfig = getcwd() . '/vendor/phpstan/phpstan-phpunit/extension.neon';
|
||||
if (file_exists($phpstanPhpunitExtensionConfig)) {
|
||||
if (file_exists($phpstanPhpunitExtensionConfig) && class_exists('PHPUnit\\Framework\\TestCase')) {
|
||||
$additionalConfigFiles[] = $phpstanPhpunitExtensionConfig;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user