Skip to content

Commit

Permalink
Fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
liquid207 committed Mar 10, 2022
1 parent 667e6b5 commit bced21c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ private function getFirstArgumentTokenIndex(Tokens $tokens, array $arguments): ?
return null; // argument is not a simple single string
}

return $tokens[$argumentStartIndex]->isGivenKind(T_CONSTANT_ENCAPSED_STRING)
return !$tokens[$argumentStartIndex]->isGivenKind(T_CONSTANT_ENCAPSED_STRING)
? null // first argument is not a string
: $argumentStartIndex
;
: $argumentStartIndex;
}
}

0 comments on commit bced21c

Please sign in to comment.