Skip to content

Commit

Permalink
Fixed missing parentheses in `ConditionalTypeForParameterNode::__toSt…
Browse files Browse the repository at this point in the history
…ring()`
  • Loading branch information
kukulich authored and ondrejmirtes committed Mar 29, 2022
1 parent c1f8095 commit 0533306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ast/Type/ConditionalTypeForParameterNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(string $parameterName, TypeNode $targetType, TypeNod
public function __toString(): string
{
return sprintf(
'%s %s %s ? %s : %s',
'(%s %s %s ? %s : %s)',
$this->parameterName,
$this->negated ? 'is not' : 'is',
$this->targetType,
Expand Down

0 comments on commit 0533306

Please sign in to comment.