@@ -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 |
@@ -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 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * @param mixed $value |
| 101 | - * @return iterable|TypeDefinition[] |
|
| 101 | + * @return \Generator |
|
| 102 | 102 | * @throws \Railt\Reflection\Exception\TypeNotFoundException |
| 103 | 103 | */ |
| 104 | 104 | public function resolveType($value): iterable |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * @param TypeDefinition $type |
| 140 | 140 | * @param \Closure $filter |
| 141 | - * @return \Generator|TypeDefinition[] |
|
| 141 | + * @return \Generator |
|
| 142 | 142 | */ |
| 143 | 143 | private function inheritedBy(TypeDefinition $type, \Closure $filter): \Traversable |
| 144 | 144 | { |