diff --git a/src/Annotation/DocBlock.php b/src/Annotation/DocBlock.php index 3b6bb9b771e..495f25ea90c 100644 --- a/src/Annotation/DocBlock.php +++ b/src/Annotation/DocBlock.php @@ -61,7 +61,7 @@ final class DocBlock /** @var string */ private $name; - /** @var string|null */ + /** @var string */ private $className; /** @@ -77,7 +77,7 @@ private function __construct( int $endLine, string $fileName, string $name, - ?string $className + string $className ) { $this->docComment = $docComment; $this->isMethod = $isMethod; @@ -383,7 +383,6 @@ private function getDataFromDataProviderAnnotation(string $docComment): ?iterabl if ($this->isMethod) { $methodName = $this->name; - $className = $this->className; } if (! \preg_match_all(self::REGEX_DATA_PROVIDER, $docComment, $matches)) {