1 | <?php |
||
11 | class JsonRequestHandler implements RequestHandlerInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var HttpFoundationRequestHandler |
||
15 | */ |
||
16 | private $httpFoundationRequestHandler; |
||
17 | |||
18 | 28 | public function __construct(HttpFoundationRequestHandler $httpFoundationRequestHandler) |
|
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 20 | public function handleRequest(FormInterface $form, $request = null) |
|
39 | } |
||
40 |
This check looks at variables that 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.