Skip to content

Commit

Permalink
Only add Mutatingscope cache key if keepVoid is true
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm committed Dec 10, 2023
1 parent 14b2f71 commit 14871cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyser/MutatingScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ private function getNodeKey(Expr $node): string
$key .= '/*' . $node->getAttribute('startFilePos') . '*/';
}

if ($node->hasAttribute(self::KEEP_VOID_ATTRIBUTE_NAME)) {
if ($node->getAttribute(self::KEEP_VOID_ATTRIBUTE_NAME) === true) {
$key .= '/*' . self::KEEP_VOID_ATTRIBUTE_NAME . '*/';
}

Expand Down

0 comments on commit 14871cd

Please sign in to comment.