Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | protected function getStrategy() |
||
46 | { |
||
47 | switch ($this->file->getFileExstensionName()) { |
||
48 | case 'cer': |
||
49 | $strategy = new CerStrategy( |
||
50 | $this->file->getOrginalRoute() |
||
51 | ); |
||
52 | break; |
||
53 | |||
54 | case 'key': |
||
55 | $strategy = new KeyStrategy( |
||
56 | $this->file->getOrginalRoute(), |
||
57 | $this->password |
||
58 | ); |
||
59 | break; |
||
60 | } |
||
61 | |||
62 | return $strategy; |
||
63 | } |
||
64 | |||
86 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..