Skip to content

Commit acd2f56

Browse files
author
Kirill Nesmeyanov
committed
Fix generic tag exception
1 parent 413545d commit acd2f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DocBlock/Tag/GenericTag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
*/
1111
final class GenericTag extends Tag implements InvalidTagInterface
1212
{
13-
private static ?\Throwable $reason = null;
13+
private ?\Throwable $reason = null;
1414

1515
public function getReason(): \Throwable
1616
{
17-
return self::$reason ??= new \OutOfRangeException(
17+
return $this->reason ??= new \OutOfRangeException(
1818
message: \sprintf('Tag "@%s" is not supported', $this->getName()),
1919
);
2020
}

0 commit comments

Comments
 (0)