Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
1 | <?php /** MicroConsole */ |
||
38 | public function __construct(IContainer $container) |
||
39 | { |
||
40 | $this->container = $container; |
||
41 | |||
42 | foreach ($container->request->getArguments() AS $param) { |
||
|
|||
43 | if ($pos = strpos($param, '=')) { |
||
44 | $this->args[substr($param, 0, $pos)] = substr($param, $pos + 1); |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 | |||
74 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: