1 | <?php |
||
11 | final class ViewListener |
||
12 | { |
||
13 | /** |
||
14 | * @var NormalizerInterface |
||
15 | */ |
||
16 | private $normalizer; |
||
17 | |||
18 | /** |
||
19 | * ViewListener constructor. |
||
20 | * |
||
21 | * @param NormalizerInterface $normalizer |
||
22 | */ |
||
23 | 8 | public function __construct(NormalizerInterface $normalizer) |
|
27 | |||
28 | 8 | public function onPlainResponse(ViewEvent $event) |
|
53 | |||
54 | } |
||
55 |
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.