The type Doctrine\Tests\DBAL\Types\AbstractPlatform 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 new Doctrine\Tests\DBAL\Mocks\MockPlatform() of type Doctrine\Tests\DBAL\Mocks\MockPlatform is incompatible with the declared type Doctrine\Tests\DBAL\Types\AbstractPlatform of property $_platform.
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...
20
$this->_type = Type::getType('simple_array');
21
}
22
23
public function testEmptyArrayConvertsToNullToDatabaseValue()
Are you sure the usage of $this->_type->convertToP...null, $this->_platform) targeting Doctrine\DBAL\Types\Type::convertToPHPValue() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is used.
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