Skip to content

Commit

Permalink
Fix wrong return type cast strategy into "1"
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Jan 7, 2025
1 parent bd18477 commit 5e8f8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeVisitor/EscaperNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private function isSafeFor(string $type, AbstractExpression $expression, Environ
return \in_array($type, $safe) || \in_array('all', $safe);
}

private function needEscaping(): bool
private function needEscaping(): string|bool
{
if (\count($this->statusStack)) {
return $this->statusStack[\count($this->statusStack) - 1];
Expand Down

0 comments on commit 5e8f8cb

Please sign in to comment.