function AnnotationParser::cleanUpCoversOrUsesTarget
2 calls to AnnotationParser::cleanUpCoversOrUsesTarget()
- AnnotationParser::forClass in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AnnotationParser.php - @psalm-param class-string $className
- AnnotationParser::forMethod in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AnnotationParser.php - @psalm-param class-string $className @psalm-param non-empty-string $methodName
File
-
vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AnnotationParser.php, line 435
Class
- AnnotationParser
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Metadata\ParserCode
private function cleanUpCoversOrUsesTarget(string $value) : string {
$value = preg_replace('/[\\s()]+$/', '', $value);
return explode(' ', $value, 2)[0];
}