Skip to content

Commit 0533306

Browse files
kukulichondrejmirtes
authored andcommitted
Fixed missing parentheses in ConditionalTypeForParameterNode::__toString()
1 parent c1f8095 commit 0533306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Ast/Type/ConditionalTypeForParameterNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(string $parameterName, TypeNode $targetType, TypeNod
3737
public function __toString(): string
3838
{
3939
return sprintf(
40-
'%s %s %s ? %s : %s',
40+
'(%s %s %s ? %s : %s)',
4141
$this->parameterName,
4242
$this->negated ? 'is not' : 'is',
4343
$this->targetType,

0 commit comments

Comments
 (0)