mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-30 04:29:20 +01:00
Fixed missing parentheses in ConditionalTypeNode::__toString()
This commit is contained in:
parent
f109d1d984
commit
c1f8095e52
@ -37,7 +37,7 @@ class ConditionalTypeNode implements TypeNode
|
||||
public function __toString(): string
|
||||
{
|
||||
return sprintf(
|
||||
'%s %s %s ? %s : %s',
|
||||
'(%s %s %s ? %s : %s)',
|
||||
$this->subjectType,
|
||||
$this->negated ? 'is not' : 'is',
|
||||
$this->targetType,
|
||||
|
Loading…
Reference in New Issue
Block a user