We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ConditionalTypeNode::__toString()
1 parent f109d1d commit c1f8095Copy full SHA for c1f8095
src/Ast/Type/ConditionalTypeNode.php
@@ -37,7 +37,7 @@ public function __construct(TypeNode $subjectType, TypeNode $targetType, TypeNod
37
public function __toString(): string
38
{
39
return sprintf(
40
- '%s %s %s ? %s : %s',
+ '(%s %s %s ? %s : %s)',
41
$this->subjectType,
42
$this->negated ? 'is not' : 'is',
43
$this->targetType,
0 commit comments