@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param RuleInterface|NodeInterface $rule |
|
55 | + * @param null|NodeInterface $rule |
|
56 | 56 | * @return \Generator |
57 | 57 | */ |
58 | 58 | private function analyze(RuleInterface $rule): \Generator |
@@ -18,7 +18,7 @@ |
||
18 | 18 | trait ArgumentsProvider |
19 | 19 | { |
20 | 20 | /** |
21 | - * @return iterable|ArgumentDefinitionNode[] |
|
21 | + * @return \Generator |
|
22 | 22 | */ |
23 | 23 | public function getArgumentNodes(): iterable |
24 | 24 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | trait DirectivesProvider |
18 | 18 | { |
19 | 19 | /** |
20 | - * @return iterable|DirectiveInvocationNode[] |
|
20 | + * @return \Generator |
|
21 | 21 | */ |
22 | 22 | public function getDirectiveNodes(): iterable |
23 | 23 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | trait FieldsProvider |
19 | 19 | { |
20 | 20 | /** |
21 | - * @return iterable|FieldDefinitionNode[] |
|
21 | + * @return \Generator |
|
22 | 22 | */ |
23 | 23 | public function getFieldNodes(): iterable |
24 | 24 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | trait InterfacesProvider |
19 | 19 | { |
20 | 20 | /** |
21 | - * @return iterable|TypeNameNode[] |
|
21 | + * @return \Generator |
|
22 | 22 | */ |
23 | 23 | public function getInterfaceNodes(): iterable |
24 | 24 | { |
@@ -32,8 +32,8 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param Readable $file |
35 | - * @param RuleInterface|ProvidesType|ProvidesName $ast |
|
36 | - * @return \Generator|mixed |
|
35 | + * @param RuleInterface $ast |
|
36 | + * @return \Generator |
|
37 | 37 | */ |
38 | 38 | public function apply(Readable $file, RuleInterface $ast) |
39 | 39 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Context $context |
37 | - * @return iterable |
|
37 | + * @return \Generator |
|
38 | 38 | */ |
39 | 39 | public function getOpcodes(Context $context): iterable |
40 | 40 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Context $context |
37 | - * @return iterable |
|
37 | + * @return \Generator |
|
38 | 38 | */ |
39 | 39 | public function getOpcodes(Context $context): iterable |
40 | 40 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Context $context |
37 | - * @return iterable |
|
37 | + * @return \Generator |
|
38 | 38 | */ |
39 | 39 | public function getOpcodes(Context $context): iterable |
40 | 40 | { |