diff --git a/composer.json b/composer.json index d96dc436..b9dfdbad 100644 --- a/composer.json +++ b/composer.json @@ -55,7 +55,7 @@ "phpstan/phpstan": "^2.0.4", "phpstan/phpstan-deprecation-rules": "^2.0.1", "phpstan/phpstan-phpunit": "^2.0.2", - "phpstan/phpstan-strict-rules": "^2", + "phpstan/phpstan-strict-rules": "^2.0.1", "squizlabs/php_codesniffer": "^3.11.2", "symfony/filesystem": "^6.4.13 || ^7.2.0" }, diff --git a/src/WrapperRunner/SuiteLoader.php b/src/WrapperRunner/SuiteLoader.php index 454981e4..e688f257 100644 --- a/src/WrapperRunner/SuiteLoader.php +++ b/src/WrapperRunner/SuiteLoader.php @@ -188,7 +188,7 @@ private function loadFiles(TestSuite $testSuite): Generator if ($test instanceof TestCase) { $refClass = new ReflectionClass($test); $filename = $refClass->getFileName(); - assert(is_string($filename) && $filename !== ''); + assert(is_string($filename)); $filename = $this->stripCwd($filename); yield $filename => $test;