1 | <?php |
||
11 | class GraphQLManager |
||
12 | { |
||
13 | /** |
||
14 | * @var SchemaFactory |
||
15 | */ |
||
16 | private $schemaFactory; |
||
17 | |||
18 | /** |
||
19 | * @var Schema |
||
20 | */ |
||
21 | protected $schema; |
||
22 | |||
23 | /** |
||
24 | * @param SchemaFactory $schemaFactory |
||
25 | */ |
||
26 | public function __construct(SchemaFactory $schemaFactory) |
||
30 | |||
31 | /** |
||
32 | * @param string $requestString |
||
33 | * @param mixed $rootValue |
||
34 | * @param array|null $variableValues |
||
35 | * @param string|null $operationName |
||
36 | * @return ExecutionResult |
||
37 | */ |
||
38 | public function query($requestString, $rootValue = null, $variableValues = null, $operationName = null) |
||
49 | |||
50 | /** |
||
51 | * @return Schema |
||
52 | */ |
||
53 | private function getSchema() |
||
61 | } |
||
62 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.