1 | <?php |
||
18 | class OpenAction |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $emailId; |
||
24 | |||
25 | /** |
||
26 | * @var Tracker |
||
27 | */ |
||
28 | private $tracker; |
||
29 | |||
30 | /** |
||
31 | * @param string $emailId Email log ID. |
||
32 | * @param Tracker $tracker Tracker service. |
||
33 | */ |
||
34 | public function __construct(string $emailId, Tracker $tracker) |
||
39 | |||
40 | /** |
||
41 | * @param Request $request PSR-7 Request. |
||
42 | * @param Response $response PSR-7 Response. |
||
43 | * @return Response |
||
44 | */ |
||
45 | public function __invoke(Request $request, Response $response) : Response |
||
54 | |||
55 | /** |
||
56 | * @return boolean|false|string |
||
57 | */ |
||
58 | private function getBlankPng() |
||
62 | } |
||
63 |
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.