1 | <?php |
||
13 | class StorageRedisModule extends AbstractModule |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $server; |
||
19 | |||
20 | /** |
||
21 | * @param string $server {host}:{port} format |
||
22 | * @param AbstractModule|null $module |
||
23 | */ |
||
24 | public function __construct(string $server, AbstractModule $module = null) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | protected function configure() |
||
38 | } |
||
39 |
This check looks at variables that have been passed in as parameters and 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.