It seems like $output of type object<Hal\Component\Output\Output> is incompatible with the declared type object<Hal\Report\Json\OutputInterface> of property $output.
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..
Are you sure the assignment to $logFile is correct as $this->config->get('report-json') (which targets Hal\Application\Config\Config::get()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
45
throw new \RuntimeException('You don\'t have permissions to write JSON report in ' . $logFile);
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..