Skip to content

Commit 292a32d

Browse files
committed
Fix TestCaseSourceLocatorFactory
1 parent 9018681 commit 292a32d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Testing/TestCaseSourceLocatorFactory.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ public function create(): SourceLocator
5757
$this->excludePaths,
5858
]));
5959
if ($classLoaderReflection->hasProperty('vendorDir') && ! isset(self::$composerSourceLocatorsCache[$cacheKey])) {
60-
$composerLocators = [];
60+
$composerLocators = [
61+
PHP_VERSION_ID < 80500
62+
? __DIR__ . '/../../stubs/runtime/Attribute84.php'
63+
: __DIR__ . '/../../stubs/runtime/Attribute85.php',
64+
];
6165
$vendorDirProperty = $classLoaderReflection->getProperty('vendorDir');
6266
$vendorDirProperty->setAccessible(true);
6367
foreach ($classLoaders as $classLoader) {

0 commit comments

Comments
 (0)