Skip to content

Commit

Permalink
Removed unused isClass flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and sebastianbergmann committed Sep 7, 2019
1 parent f57e88b commit 41f25ba
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Annotation/DocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@ final class DocBlock
/** @var string */
private $docComment;

/** @var bool */
private $isClass;

/** @var bool */
private $isMethod;

/** @var array<string, array<int, string>> */
/** @var array<string, array<int, string>> pre-parsed annotations indexed by name and occurrence index */
private $symbolAnnotations;

/** @var int */
Expand All @@ -73,8 +70,7 @@ final class DocBlock
* @param array<string, array<int, string>> $symbolAnnotations
*/
private function __construct(
string $docBlock,
bool $isClass,
string $docComment,
bool $isMethod,
array $symbolAnnotations,
int $startLine,
Expand All @@ -83,8 +79,7 @@ private function __construct(
string $name,
?string $className
) {
$this->docComment = $docBlock;
$this->isClass = $isClass;
$this->docComment = $docComment;
$this->isMethod = $isMethod;
$this->symbolAnnotations = $symbolAnnotations;
$this->startLine = $startLine;
Expand All @@ -100,7 +95,6 @@ public static function ofClass(\ReflectionClass $class) : self

return new self(
(string) $class->getDocComment(),
true,
false,
self::extractAnnotationsFromReflector($class),
$class->getStartLine(),
Expand All @@ -115,7 +109,6 @@ public static function ofFunction(\ReflectionFunctionAbstract $function) : self
{
return new self(
(string) $function->getDocComment(),
false,
$function instanceof \ReflectionMethod,
self::extractAnnotationsFromReflector($function),
$function->getStartLine(),
Expand Down

0 comments on commit 41f25ba

Please sign in to comment.