Skip to content

Commit edad555

Browse files
authored
[PhpUnitBridge] Fix error with ReflectionClass
1 parent 0425370 commit edad555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Legacy/CoverageListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private function addCoversForDocBlockInsideRegistry($test, $covers)
109109

110110
// Exclude internal classes; PHPUnit 9.1+ is picky about tests covering, say, a \RuntimeException
111111
$covers = array_filter($covers, function ($class) {
112-
$reflector = new ReflectionClass($class);
112+
$reflector = new \ReflectionClass($class);
113113

114114
return $reflector->isUserDefined();
115115
});

0 commit comments

Comments
 (0)