The type Admin\Factory\Admin\Model\ApplicationsTable was not found. Did you mean Admin\Model\ApplicationsTable? If so, make sure to prefix the type with \.
Loading history...
39
*/
40
public function createService(ServiceLocatorInterface $serviceLocator)
new Admin\Model\Applications() of type Admin\Model\Applications 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 Applications());
Loading history...
45
$tableGateway = new TableGateway('applications', $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\ApplicationsTable which is incompatible with the documented return type Admin\Factory\Admin\Model\ApplicationsTable.