[PhpUnitBridge] Fix error with ReflectionClass

This commit is contained in:
Alexey Kopytko 2020-09-15 16:51:47 +09:00 committed by GitHub
parent 61c1175d05
commit ed1bffeed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ class CoverageListenerTrait
// Exclude internal classes; PHPUnit 9.1+ is picky about tests covering, say, a \RuntimeException
$covers = array_filter($covers, function ($class) {
$reflector = new ReflectionClass($class);
$reflector = new \ReflectionClass($class);
return $reflector->isUserDefined();
});