@@ -71,6 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * @param int ...$values |
| 74 | + * @param integer[] $values |
|
| 74 | 75 | * @return ProvidesTypeIndication|$this |
| 75 | 76 | */ |
| 76 | 77 | public function withModifiers(int ...$values): ProvidesTypeIndication |
@@ -83,7 +84,7 @@ discard block |
||
| 83 | 84 | } |
| 84 | 85 | |
| 85 | 86 | /** |
| 86 | - * @param string|TypeDefinition $type |
|
| 87 | + * @param string $type |
|
| 87 | 88 | * @return ProvidesTypeIndication|$this |
| 88 | 89 | */ |
| 89 | 90 | public function withTypeDefinition($type): ProvidesTypeIndication |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | use Railt\Reflection\Contracts\Definition\Behaviour\ProvidesTypeIndication; |
| 13 | 13 | use Railt\Reflection\Contracts\Definition\TypeDefinition; |
| 14 | -use Railt\Reflection\Contracts\Dictionary; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Trait HasTypeIndication |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param string|null $name |
| 38 | - * @return iterable|DirectiveInvocation[]|\Generator |
|
| 38 | + * @return \Generator |
|
| 39 | 39 | */ |
| 40 | 40 | public function getDirectives(string $name = null): iterable |
| 41 | 41 | { |
@@ -48,6 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param DirectiveInvocation ...$invocations |
| 51 | + * @param DirectiveInvocation[] $invocations |
|
| 51 | 52 | * @return ProvidesDirectives|$this |
| 52 | 53 | */ |
| 53 | 54 | public function withDirective(DirectiveInvocation ...$invocations): ProvidesDirectives |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | abstract protected function fetch($type): TypeDefinition; |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * @return iterable|TypeDefinition[] |
|
| 32 | + * @return \Generator |
|
| 33 | 33 | */ |
| 34 | 34 | public function getDefinitions(): iterable |
| 35 | 35 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | abstract protected function fetch($type): TypeDefinition; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @param string|TypeDefinition $interface |
|
| 33 | + * @param TypeDefinition $interface |
|
| 34 | 34 | * @return bool |
| 35 | 35 | */ |
| 36 | 36 | public function isImplements($interface): bool |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @return iterable|InterfaceDefinition[] |
|
| 50 | + * @return \Generator |
|
| 51 | 51 | */ |
| 52 | 52 | public function getInterfaces(): iterable |
| 53 | 53 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | abstract protected function fetch($type): TypeDefinition; |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return iterable|TypeDefinition[] |
|
| 37 | + * @return \Generator |
|
| 38 | 38 | */ |
| 39 | 39 | public function inheritedBy(): iterable |
| 40 | 40 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @param TypeDefinition|string $type |
|
| 102 | + * @param TypeDefinition $type |
|
| 103 | 103 | * @return bool |
| 104 | 104 | */ |
| 105 | 105 | public function instanceOf($type): bool |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @return iterable|string[] |
|
| 53 | + * @return \Generator |
|
| 54 | 54 | */ |
| 55 | 55 | private function jsonNonRenderableTypes(): iterable |
| 56 | 56 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return iterable|string[] |
|
| 62 | + * @return \Generator |
|
| 63 | 63 | */ |
| 64 | 64 | private function jsonNonRenderableFields(): iterable |
| 65 | 65 | { |