@@ -243,7 +243,7 @@ |
||
243 | 243 | |
244 | 244 | /** |
245 | 245 | * @param Readable $readable |
246 | - * @param iterable|RuleInterface[] $rules |
|
246 | + * @param RuleInterface $rules |
|
247 | 247 | * @return iterable|array[] |
248 | 248 | * @throws \Railt\Io\Exception\ExternalFileException |
249 | 249 | */ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * @param ContextInterface $ctx |
39 | 39 | * @param RuleInterface $rule |
40 | - * @return mixed|\Generator|void |
|
40 | + * @return \Generator |
|
41 | 41 | */ |
42 | 42 | public function reduce(ContextInterface $ctx, RuleInterface $rule) |
43 | 43 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @param ContextInterface $ctx |
42 | 42 | * @param RuleInterface $rule |
43 | - * @return \Generator|\Closure |
|
43 | + * @return \Generator |
|
44 | 44 | */ |
45 | 45 | public function reduce(ContextInterface $ctx, RuleInterface $rule): \Generator |
46 | 46 | { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @param RuleInterface $rule |
69 | - * @return iterable|string[] |
|
69 | + * @return \Generator |
|
70 | 70 | */ |
71 | 71 | private function getVariableNames(RuleInterface $rule): iterable |
72 | 72 | { |
@@ -32,8 +32,8 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param ContextInterface $ctx |
35 | - * @param RuleInterface|AstValueInterface $rule |
|
36 | - * @return mixed|Value |
|
35 | + * @param RuleInterface $rule |
|
36 | + * @return Value |
|
37 | 37 | */ |
38 | 38 | public function reduce(ContextInterface $ctx, RuleInterface $rule) |
39 | 39 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * @param ContextInterface $ctx |
45 | 45 | * @param RuleInterface $rule |
46 | - * @return mixed|Value |
|
46 | + * @return ValueInterface |
|
47 | 47 | */ |
48 | 48 | public function reduce(ContextInterface $ctx, RuleInterface $rule): ValueInterface |
49 | 49 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * @param ContextInterface $ctx |
39 | 39 | * @param RuleInterface $rule |
40 | - * @return \Generator|InvocationInterface |
|
40 | + * @return \Generator |
|
41 | 41 | * @throws TypeConflictException |
42 | 42 | */ |
43 | 43 | public function reduce(ContextInterface $ctx, RuleInterface $rule): \Generator |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * @param ContextInterface $ctx |
70 | - * @param TypeNameInterface|ValueInterface $name |
|
70 | + * @param ValueInterface $name |
|
71 | 71 | * @return InvocationInterface |
72 | 72 | */ |
73 | 73 | private function resolveName(ContextInterface $ctx, $name): InvocationInterface |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * @param ContextInterface $ctx |
97 | 97 | * @param RuleInterface $rule |
98 | - * @return \Generator|TypeNameInterface |
|
98 | + * @return \Generator |
|
99 | 99 | * @throws TypeConflictException |
100 | 100 | */ |
101 | 101 | private function fetchArgumentName(ContextInterface $ctx, RuleInterface $rule): \Generator |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | /** |
124 | 124 | * @param ContextInterface $ctx |
125 | 125 | * @param RuleInterface $rule |
126 | - * @return \Generator|ValueInterface |
|
126 | + * @return \Generator |
|
127 | 127 | */ |
128 | 128 | private function fetchArgumentValue(ContextInterface $ctx, RuleInterface $rule): \Generator |
129 | 129 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | /** |
47 | 47 | * @param mixed ...$args |
48 | - * @return \Generator|mixed |
|
48 | + * @return \Generator |
|
49 | 49 | */ |
50 | 50 | public function __invoke(...$args) |
51 | 51 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @param array $args |
57 | - * @return \Generator|mixed |
|
57 | + * @return \Generator |
|
58 | 58 | */ |
59 | 59 | public function invoke(...$args): \Generator |
60 | 60 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | - * @return iterable|\Generator |
|
52 | + * @return \Generator |
|
53 | 53 | */ |
54 | 54 | public function getIterator(): iterable |
55 | 55 | { |
@@ -144,7 +144,7 @@ |
||
144 | 144 | |
145 | 145 | /** |
146 | 146 | * @param \Closure $filter |
147 | - * @return \Generator|DeferredInterface[] |
|
147 | + * @return \Generator |
|
148 | 148 | */ |
149 | 149 | public function export(\Closure $filter): \Generator |
150 | 150 | { |