@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param Readable $readable |
60 | - * @return iterable |
|
60 | + * @return \Generator |
|
61 | 61 | * @throws SyntaxException |
62 | 62 | * @throws \Railt\Io\Exception\ExternalFileException |
63 | 63 | */ |
@@ -101,8 +101,8 @@ |
||
101 | 101 | |
102 | 102 | /** |
103 | 103 | * @param Readable $file |
104 | - * @param iterable $ast |
|
105 | - * @return iterable |
|
104 | + * @param RuleInterface $ast |
|
105 | + * @return \Generator |
|
106 | 106 | * @throws \Railt\Io\Exception\ExternalFileException |
107 | 107 | */ |
108 | 108 | public function build(Readable $file, iterable $ast): iterable |
@@ -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 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @param ContextInterface $ctx |
40 | 40 | * @param RuleInterface $rule |
41 | - * @return \Generator|mixed|void |
|
41 | + * @return \Generator |
|
42 | 42 | */ |
43 | 43 | public function reduce(ContextInterface $ctx, RuleInterface $rule) |
44 | 44 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * @param ContextInterface $ctx |
33 | 33 | * @param RuleInterface $rule |
34 | - * @return \Generator|mixed|void |
|
34 | + * @return \Generator |
|
35 | 35 | */ |
36 | 36 | public function reduce(ContextInterface $ctx, RuleInterface $rule) |
37 | 37 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @param ContextInterface $ctx |
40 | 40 | * @param RuleInterface $rule |
41 | - * @return \Generator|Definition |
|
41 | + * @return \Generator |
|
42 | 42 | * @throws InvalidArgumentException |
43 | 43 | */ |
44 | 44 | public function reduce(ContextInterface $ctx, RuleInterface $rule): \Generator |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @param RuleInterface $argument |
63 | - * @return \Generator|TypeNameInterface |
|
63 | + * @return \Generator |
|
64 | 64 | */ |
65 | 65 | private function getArgumentName(RuleInterface $argument): \Generator |
66 | 66 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param RuleInterface $argument |
73 | - * @return \Generator|TypeNameInterface |
|
73 | + * @return \Generator |
|
74 | 74 | */ |
75 | 75 | private function getArgumentValue(RuleInterface $argument): \Generator |
76 | 76 | { |
@@ -41,8 +41,8 @@ |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @param ContextInterface $ctx |
44 | - * @param RuleInterface|AstValueInterface $rule |
|
45 | - * @return mixed|Value |
|
44 | + * @param RuleInterface $rule |
|
45 | + * @return Value|null |
|
46 | 46 | */ |
47 | 47 | public function reduce(ContextInterface $ctx, RuleInterface $rule) |
48 | 48 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * @param ContextInterface $ctx |
37 | 37 | * @param RuleInterface $rule |
38 | - * @return \Generator|ValueInterface |
|
38 | + * @return \Generator |
|
39 | 39 | */ |
40 | 40 | public function reduce(ContextInterface $ctx, RuleInterface $rule): \Generator |
41 | 41 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param string|iterable|TypeNameInterface $name |
|
96 | + * @param TypeNameInterface $name |
|
97 | 97 | * @param TypeInterface|null $of |
98 | 98 | * @return TypeInterface|static |
99 | 99 | */ |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | /** |
145 | 145 | * @param TypeInterface $type |
146 | - * @return \Generator|TypeInterface[] |
|
146 | + * @return \Generator |
|
147 | 147 | */ |
148 | 148 | private function getInheritanceSequence(TypeInterface $type): \Generator |
149 | 149 | { |