8000 minor #38191 [PhpUnitBridge] Fix error with ReflectionClass (sanmai) · symfony/symfony@1365691 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1365691

Browse files
minor #38191 [PhpUnitBridge] Fix error with ReflectionClass (sanmai)
This PR was merged into the 4.4 branch. Discussion ---------- [PhpUnitBridge] Fix error with ReflectionClass | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT Introduced in #38094. Wish I know how I missed that. Commits ------- ed1bffe [PhpUnitBridge] Fix error with ReflectionClass
2 parents 61c1175 + ed1bffe commit 1365691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/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)
0