@@ -17,7 +17,7 @@ |
||
17 | 17 | class UnionDefinitionNode extends TypeDefinitionNode |
18 | 18 | { |
19 | 19 | /** |
20 | - * @return iterable|TypeNameNode[] |
|
20 | + * @return \Generator |
|
21 | 21 | */ |
22 | 22 | public function getUnitedTypes(): iterable |
23 | 23 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @return null|ValueInterface|NodeInterface |
|
46 | + * @return null|NodeInterface |
|
47 | 47 | */ |
48 | 48 | public function getDefaultValue(): ?ValueInterface |
49 | 49 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @return null|ValueInterface|NodeInterface |
|
44 | + * @return null|NodeInterface |
|
45 | 45 | */ |
46 | 46 | public function getValue(): ?ValueInterface |
47 | 47 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return iterable|ValueInterface[] |
|
51 | + * @return \Generator |
|
52 | 52 | */ |
53 | 53 | public function getValues(): iterable |
54 | 54 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | private $type; |
42 | 42 | |
43 | 43 | /** |
44 | - * @param TypeHint|Definition $type |
|
44 | + * @param TypeHint $type |
|
45 | 45 | */ |
46 | 46 | public function __construct(TypeHint $type) |
47 | 47 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @param TypeHint|TypeDefinition $type |
|
82 | + * @param TypeHint $type |
|
83 | 83 | * @param ValueInterface|ListValueNode $value |
84 | 84 | * @return \Traversable |
85 | 85 | * @throws \Railt\Io\Exception\ExternalFileException |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * @param TypeHint|TypeDefinition $type |
|
131 | - * @param ValueInterface|RuleInterface $value |
|
130 | + * @param TypeHint $type |
|
131 | + * @param ValueInterface $value |
|
132 | 132 | * @return mixed |
133 | 133 | * @throws \Railt\Io\Exception\ExternalFileException |
134 | 134 | */ |
@@ -152,8 +152,8 @@ discard block |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * @param TypeHint|TypeDefinition $type |
|
156 | - * @param ValueInterface|RuleInterface|InputValueNode $value |
|
155 | + * @param TypeHint $type |
|
156 | + * @param ValueInterface $value |
|
157 | 157 | * @return InputInvocation |
158 | 158 | * @throws \Railt\Io\Exception\ExternalFileException |
159 | 159 | */ |
@@ -197,8 +197,8 @@ discard block |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @param TypeHint|TypeDefinition|ConstantValueNode $type |
|
201 | - * @param ValueInterface|RuleInterface $value |
|
200 | + * @param TypeHint $type |
|
201 | + * @param ValueInterface $value |
|
202 | 202 | * @return mixed |
203 | 203 | * @throws \Railt\Io\Exception\ExternalFileException |
204 | 204 | */ |
@@ -231,8 +231,8 @@ discard block |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * @param TypeHint|TypeDefinition $type |
|
235 | - * @param ValueInterface|RuleInterface $value |
|
234 | + * @param TypeHint $type |
|
235 | + * @param ValueInterface $value |
|
236 | 236 | * @return bool|float|int|mixed|null|string |
237 | 237 | * @throws \Railt\Io\Exception\ExternalFileException |
238 | 238 | * @throws \Railt\Reflection\Exception\TypeNotFoundException |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | } |
252 | 252 | |
253 | 253 | /** |
254 | - * @param TypeHint|TypeDefinition $type |
|
254 | + * @param TypeHint $type |
|
255 | 255 | * @param ValueInterface $value |
256 | 256 | * @return mixed |
257 | 257 | * @throws \Railt\Io\Exception\ExternalFileException |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | /** |
101 | 101 | * @param mixed $value |
102 | - * @return iterable|TypeDefinition[] |
|
102 | + * @return \Generator |
|
103 | 103 | * @throws \Railt\Reflection\Exception\TypeNotFoundException |
104 | 104 | */ |
105 | 105 | public function resolveType($value): iterable |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * @param TypeDefinition $type |
141 | 141 | * @param \Closure $filter |
142 | - * @return \Generator|TypeDefinition[] |
|
142 | + * @return \Generator |
|
143 | 143 | */ |
144 | 144 | private function getFilteredChildrenInheritance(TypeDefinition $type, \Closure $filter): \Traversable |
145 | 145 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @return null|ValueInterface|NodeInterface |
|
46 | + * @return null|NodeInterface |
|
47 | 47 | */ |
48 | 48 | public function getDefaultValue(): ?ValueInterface |
49 | 49 | { |