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 f97cda7 commit b7a98bfCopy full SHA for b7a98bf
src/type/IntersectionType.php
@@ -34,7 +34,7 @@ public function __construct(Type ...$types)
34
$this->ensureOnlyValidTypes(...$types);
35
$this->ensureNoDuplicateTypes(...$types);
36
37
- assert(!empty($types));
+ assert($types !== []);
38
39
$this->types = $types;
40
}
src/type/UnionType.php
@@ -32,7 +32,7 @@ public function __construct(Type ...$types)
32
$this->ensureMinimumOfTwoTypes(...$types);
33
0 commit comments