bump tests to phpstan level 5 (#1922)

This commit is contained in:
Kevin Papst
2020-09-05 16:48:19 +02:00
committed by GitHub
parent b69ea0648c
commit ed528eb19a
35 changed files with 128 additions and 93 deletions

View File

@@ -42,8 +42,8 @@ final class AnnotationExtractor implements ExtractorInterface
*/
public function extract($value): array
{
if (!\is_string($value)) {
throw new ExtractorException('AnnotationExtractor needs a class name (string) for work');
if (!\is_string($value) || empty($value)) {
throw new ExtractorException('AnnotationExtractor needs a non-empty class name for work');
}
try {