Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Feb 14, 2024
1 parent a0bf94b commit ca46a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotator/AbstractAnnotator.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ protected function parseExistingAnnotations(File $file, int $closeTagIndex, arra

$tag = $tokens[$i]['content'];
$variablePos = strpos($content, ' $');
if ($tag === '@var' && $variablePos) {
if ($tag === VariableAnnotation::TAG && $variablePos) {
$content = mb_substr($content, $variablePos + 1);
} else {
$content = mb_substr($content, mb_strlen($typeString) + 1);
Expand Down

0 comments on commit ca46a54

Please sign in to comment.