Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎src/Ast/Type/ConditionalTypeForParameterNode.php‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /