| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | View Code Duplication | public function getConfig($name = null) |
|
| 45 | { |
||
| 46 | if ($name !== null) { |
||
| 47 | return (isset($this->config[$name])) ? $this->config[$name] : null; |
||
| 48 | } else { |
||
| 49 | return $this->config; |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 82 | } |
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..