The type Xervice\Redis\Commands\Collection was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
It seems like $commandCollection of type Xervice\Redis\Business\Model\Commands\Collection is incompatible with the declared type Xervice\Redis\Commands\Collection of property $commandCollection.
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...
30
8
$this->client = $client;
31
8
}
32
33
34
8
public function provideCommands(): void
35
{
36
8
foreach ($this->commandCollection as $commandProvider) {
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths