It seems like $logger of type object<Psr\Log\LoggerInterface> is incompatible with the declared type object<DP\Core\CoreBundle\Settings\Logger> of property $logger.
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...
29
}
30
31
/**
32
* @return array
33
*/
34
public function read()
35
{
36
$settings = [];
37
38
try {
39
$settings = Yaml::parse($this->filePath);
40
} catch (ParseException $e) {
41
$this->logger->error(sprintf('Unable to read the core settings file "%s".', $this->filePath));
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..