Skip to content

Commit e53d7ee

Browse files
herndlmondrejmirtes
authored andcommitted
Set normalized in BenevolentUnionType
1 parent 3078f1a commit e53d7ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Type/BenevolentUnionType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class BenevolentUnionType extends UnionType
1414
* @api
1515
* @param Type[] $types
1616
*/
17-
public function __construct(array $types)
17+
public function __construct(array $types, bool $normalized = false)
1818
{
19-
parent::__construct($types);
19+
parent::__construct($types, $normalized);
2020
}
2121

2222
public function describe(VerbosityLevel $level): string

src/Type/TypeCombinator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public static function union(Type ...$types): Type
363363
return $benevolentUnionObject->withTypes($types);
364364
}
365365

366-
return new BenevolentUnionType($types);
366+
return new BenevolentUnionType($types, true);
367367
}
368368
}
369369

0 commit comments

Comments
 (0)