thecodingmachine /
graphql-controllers
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace TheCodingMachine\GraphQL\Controllers\Fixtures; |
||
| 5 | |||
| 6 | use ArrayObject; |
||
| 7 | use TheCodingMachine\GraphQL\Controllers\Annotations\Query; |
||
| 8 | |||
| 9 | class TestControllerWithIterableParam |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @Query() |
||
| 13 | */ |
||
| 14 | public function test(ArrayObject $params): string |
||
|
0 ignored issues
–
show
|
|||
| 15 | { |
||
| 16 | return 'foo'; |
||
| 17 | } |
||
| 18 | } |
||
| 19 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.