| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1.0122 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 4 | private function setDefaultLoaders() : void |
|
| 22 | { |
||
| 23 | 4 | $this->loaders = [ |
|
|
|
|||
| 24 | 'json' => static function ($file) : ConfigurationLoader { |
||
| 25 | return new JsonFile($file); |
||
| 26 | 4 | }, |
|
| 27 | 'php' => static function ($file) : ConfigurationLoader { |
||
| 28 | 2 | return new PhpFile($file); |
|
| 29 | 4 | }, |
|
| 30 | 'xml' => static function ($file) : ConfigurationLoader { |
||
| 31 | return new XmlFile($file); |
||
| 32 | 4 | }, |
|
| 33 | 'yaml' => static function ($file) : ConfigurationLoader { |
||
| 34 | return new YamlFile($file); |
||
| 35 | 4 | }, |
|
| 36 | 'yml' => static function ($file) : ConfigurationLoader { |
||
| 37 | 1 | return new YamlFile($file); |
|
| 38 | 4 | }, |
|
| 39 | ]; |
||
| 40 | 4 | } |
|
| 41 | |||
| 56 |
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..