1 | <?php |
||
9 | class KernelResponseListener |
||
10 | { |
||
11 | /** |
||
12 | * @var PjaxHelperInterface |
||
13 | */ |
||
14 | protected $pjax; |
||
15 | |||
16 | /** |
||
17 | * @param PjaxHelperInterface $pjax |
||
18 | */ |
||
19 | public function __construct(PjaxHelperInterface $pjax) |
||
23 | |||
24 | /** |
||
25 | * @param FilterResponseEvent $event |
||
26 | */ |
||
27 | public function addPjaxVersion(FilterResponseEvent $event) |
||
36 | |||
37 | /** |
||
38 | * @param FilterResponseEvent $event |
||
39 | * |
||
40 | * @return Response |
||
41 | */ |
||
42 | public function pjaxRedirect(FilterResponseEvent $event) |
||
57 | } |
||
58 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.