Skip to content

Magento 2.3.2 Incompatible argument type

6/7 [========================>—] 85% 33 secs 395.0 MiBErrors during compilation:
DanielsCformModelResourceModelPostGridCollection
Incompatible argument type: Required type: MagentoFrameworkDBAdapterAdapterInterface. Actual type: DanielsCformModelResourceModelPostGridconnection; File:
/chroot/home/a4610039/0f13fb0d8d.nxcli.net/html/app/code/Daniels/Cform/Model/ResourceModel/Cform/Grid/Collection.php

Total Errors Count: 1

In Log.php line 92:

Error during compilation

`<?php
namespace DanielsCformModelResourceModelCform;

use MagentoFrameworkModelResourceModelDbCollectionAbstractCollection;

class Collection extends AbstractCollection
{

  /**
 * ID Field Name
 * 
 * @var string
 */
protected $_idFieldName = 'contect_id';

/**
 * Event prefix
 * 
 * @var string
 */
protected $_eventPrefix = 'daniels_cform_allcontect_collection';

/**
 * Event object
 * 
 * @var string
 */
protected $_eventObject = 'contect_collection';

/**
 * Define resource model
 *
 * @return void
 */
protected function _construct()
{
    $this->_init('DanielsCformModelCform', 'DanielsCformModelResourceModelCform');
}

}`