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 2da20b0 commit 4049da2Copy full SHA for 4049da2
src/type/CompoundType.php
@@ -18,8 +18,6 @@ class CompoundType extends Type {
18
* @param array<Type> $types
19
*/
20
private function __construct(array $types) {
21
- parent::__construct();
22
- $this->types = $types;
23
$restrictedValues = [];
24
foreach ($types as $type) {
25
if($type->getRestrictedValues() !== null) {
@@ -29,7 +27,8 @@ private function __construct(array $types) {
29
27
break;
30
28
}
31
32
- $this->setRestrictedValues($restrictedValues);
+ parent::__construct($restrictedValues);
+ $this->types = $types;
33
34
35
public static function buildFromTypes(array $types): Type {
0 commit comments