Issues (91)

tests/Fixtures/TestControllerWithIterableParam.php (1 issue)

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
The parameter $params is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

14
    public function test(/** @scrutinizer ignore-unused */ ArrayObject $params): string

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
    {
16
        return 'foo';
17
    }
18
}
19