Skip to content

Commit

Permalink
DocBlock#$className is never nullable according to current semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and sebastianbergmann committed Sep 7, 2019
1 parent fa4671f commit f1bacbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Annotation/DocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class DocBlock
/** @var string */
private $name;

/** @var string|null */
/** @var string */
private $className;

/**
Expand All @@ -77,7 +77,7 @@ private function __construct(
int $endLine,
string $fileName,
string $name,
?string $className
string $className
) {
$this->docComment = $docComment;
$this->isMethod = $isMethod;
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit f1bacbb

Please sign in to comment.