We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3078f1a commit e53d7eeCopy full SHA for e53d7ee
src/Type/BenevolentUnionType.php
@@ -14,9 +14,9 @@ class BenevolentUnionType extends UnionType
14
* @api
15
* @param Type[] $types
16
*/
17
- public function __construct(array $types)
+ public function __construct(array $types, bool $normalized = false)
18
{
19
- parent::__construct($types);
+ parent::__construct($types, $normalized);
20
}
21
22
public function describe(VerbosityLevel $level): string
src/Type/TypeCombinator.php
@@ -363,7 +363,7 @@ public static function union(Type ...$types): Type
363
return $benevolentUnionObject->withTypes($types);
364
365
366
- return new BenevolentUnionType($types);
+ return new BenevolentUnionType($types, true);
367
368
369
0 commit comments