Skip to content

Commit 9cf463e

Browse files
committed
Fix getAliases method output type declarations in documentation
1 parent b292b2b commit 9cf463e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/definitions/mutation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ShipMutation implements MutationInterface, AliasedInterface
7575
/**
7676
* {@inheritdoc}
7777
*/
78-
public static function getAliases()
78+
public static function getAliases(): array
7979
{
8080
return [
8181
// `create_ship` is the name of the mutation that you SHOULD use inside of your types definition

docs/definitions/resolver.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Greetings implements ResolverInterface, AliasedInterface
4848
/**
4949
* {@inheritdoc}
5050
*/
51-
public static function getAliases()
51+
public static function getAliases(): array
5252
{
5353
return ['sayHello' => 'say_hello'];
5454
}
@@ -162,7 +162,7 @@ class CalcMutation implements MutationInterface, AliasedInterface
162162
/**
163163
* {@inheritdoc}
164164
*/
165-
public static function getAliases()
165+
public static function getAliases(): array
166166
{
167167
return ['addition' => 'add'];
168168
}

docs/definitions/type-system/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Types can be define 3 different ways:
6060
/**
6161
* {@inheritdoc}
6262
*/
63-
public static function getAliases()
63+
public static function getAliases(): array
6464
{
6565
return ['DateTime', 'Date'];
6666
}

0 commit comments

Comments
 (0)