| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 2 | public function get($dotPath, $default = null) |
|
| 18 | { |
||
| 19 | 2 | foreach ($this->configs as $config) { |
|
|
1 ignored issue
–
show
|
|||
| 20 | 2 | $value = $config->get($dotPath, $default); |
|
| 21 | 2 | if ($value !== $default) { |
|
| 22 | 2 | return $value; |
|
| 23 | } |
||
| 24 | 2 | } |
|
| 25 | |||
| 26 | 2 | return $default; |
|
| 27 | } |
||
| 28 | |||
| 34 |
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..