It seems like array('json' => static f...ion\YamlFile($file); }) of type array<string,object<Clos...ml":"object<Closure>"}> is incompatible with the declared type array<integer,callable> of property $loaders.
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..
Loading history...
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
42
4
public function getConfiguration() : Configuration
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..