We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
10 | class GraphController |
||
11 | { |
||
12 | /** |
||
13 | * @var GraphQLRequest\BatchParser |
||
14 | */ |
||
15 | private $batchParser; |
||
16 | |||
17 | /** |
||
18 | * @var GraphQLRequest\Executor |
||
19 | */ |
||
20 | private $requestExecutor; |
||
21 | |||
22 | /** |
||
23 | * @var GraphQLRequest\Parser |
||
24 | */ |
||
25 | private $requestParser; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $shouldHandleCORS; |
||
31 | |||
32 | /** |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $useApolloBatchingMethod; |
||
36 | |||
37 | 52 | public function __construct( |
|
50 | |||
51 | /** |
||
52 | * @param Request $request |
||
53 | * @param string|null $schemaName |
||
54 | * |
||
55 | * @return JsonResponse|Response |
||
56 | */ |
||
57 | 44 | public function endpointAction(Request $request, $schemaName = null) |
|
61 | |||
62 | /** |
||
63 | * @param Request $request |
||
64 | * @param string|null $schemaName |
||
65 | * |
||
66 | * @return JsonResponse|Response |
||
67 | */ |
||
68 | 8 | public function batchEndpointAction(Request $request, $schemaName = null) |
|
72 | |||
73 | /** |
||
74 | * @param Request $request |
||
75 | * @param string|null $schemaName |
||
76 | * @param bool $batched |
||
77 | * |
||
78 | * @return JsonResponse|Response |
||
79 | */ |
||
80 | 52 | private function createResponse(Request $request, $schemaName, $batched) |
|
95 | |||
96 | 40 | private function addCORSHeadersIfNeeded(Response $response, Request $request) |
|
106 | |||
107 | /** |
||
108 | * @param Request $request |
||
109 | * @param string|null $schemaName |
||
110 | * @param bool $batched |
||
111 | * |
||
112 | * @return array |
||
113 | */ |
||
114 | 49 | private function processQuery(Request $request, $schemaName, $batched) |
|
124 | |||
125 | /** |
||
126 | * @param Request $request |
||
127 | * @param string|null $schemaName |
||
128 | * |
||
129 | * @return array |
||
130 | */ |
||
131 | 7 | private function processBatchQuery(Request $request, $schemaName = null) |
|
148 | |||
149 | /** |
||
150 | * @param Request $request |
||
151 | * @param string|null $schemaName |
||
152 | * |
||
153 | * @return array |
||
154 | */ |
||
155 | 42 | private function processNormalQuery(Request $request, $schemaName = null) |
|
161 | } |
||
162 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.