WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c1f8095

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ast/Type/ConditionalTypeNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(TypeNode $subjectType, 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->subjectType,
4242
$this->negated ? 'is not' : 'is',
4343
$this->targetType,

0 commit comments

Comments
 (0)