diff --git a/composer.json b/composer.json index 888bc5fa30..7fa27724de 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "nette/utils": "^3.1.1", "nikic/php-parser": "^4.3.0", "ondram/ci-detector": "^3.1", - "ondrejmirtes/better-reflection": "^3.5.6", + "ondrejmirtes/better-reflection": "^4.0.1", "phpstan/phpdoc-parser": "^0.4.3", "react/child-process": "^0.6.1", "react/event-loop": "^1.1", diff --git a/tests/PHPStan/Composer/AutoloadFilesTest.php b/tests/PHPStan/Composer/AutoloadFilesTest.php index 5d6264409a..12492e4dc3 100644 --- a/tests/PHPStan/Composer/AutoloadFilesTest.php +++ b/tests/PHPStan/Composer/AutoloadFilesTest.php @@ -19,7 +19,9 @@ public function testExpectedFiles(): void if ($vendorPath === false) { throw new \PHPStan\ShouldNotHappenException(); } - foreach ($finder->files()->name('composer.json')->in(__DIR__ . '/../../../vendor') as $fileInfo) { + foreach ($finder->files()->name('composer.json')->in(__DIR__ . '/../../../vendor')->exclude([ + 'ondrejmirtes/better-reflection/test', + ]) as $fileInfo) { $realpath = $fileInfo->getRealPath(); if ($realpath === false) { throw new \PHPStan\ShouldNotHappenException();