new Admin\Model\Settings() of type Admin\Model\Settings is incompatible with the type ArrayObject expected by parameter $arrayObjectPrototype of Zend\Db\ResultSet\Result...tArrayObjectPrototype().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
44
$resultSetPrototype->setArrayObjectPrototype(/** @scrutinizer ignore-type */ new Settings());
Loading history...
45
$tableGateway = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype);
It seems like $dbAdapter can also be of type array; however, parameter $adapter of Zend\Db\TableGateway\TableGateway::__construct() does only seem to accept Zend\Db\Adapter\AdapterInterface, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return $table returns the type Admin\Model\SettingsTable which is incompatible with the documented return type Admin\Factory\Admin\Model\SettingsTable.