Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible argument type: Required type #19

Closed
Ralfefernandes opened this issue Nov 16, 2017 · 3 comments
Closed

Incompatible argument type: Required type #19

Ralfefernandes opened this issue Nov 16, 2017 · 3 comments

Comments

@Ralfefernandes
Copy link

By running the command: php bin/magento setup:di:compile:

Please re-run Magento compile command. Use the command "setup:di:compile"
ralfe@hp:/var/www/html/magento2$ sudo php bin/magento setup:di:compileCompilation was started.
Proxies code generation... 0/7 [>---------------------------] 0% < 1 sec 50.0 Proxies code generation... 1/7 [====>-----------------------] 14% < 1 sec 52.0 Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec Repositories code generation... 2/7 [========>-------------------] 28% 4 secs 1Service data attributes generation... 2/7 [========>-------------------] 28% 4 Service data attributes generation... 3/7 [============>---------------] 42% 4 Application code generator... 3/7 [============>---------------] 42% 4 secs 156Application code generator... 4/7 [================>-----------] 57% 6 secs 176Interceptors generation... 4/7 [================>-----------] 57% 6 secs 176.0 Interceptors generation... 5/7 [====================>-------] 71% 11 secs 192.0Area configuration aggregation... 5/7 [====================>-------] 71% 11 secArea configuration aggregation... 6/7 [========================>---] 85% 14 secInterception cache generation... 6/7 [========================>---] 85% 14 secs 258.0 MiBErrors during compilation:
PHPCuong\Faq\Model\ResourceModel\Faqcat
Incompatible argument type: Required type: string. Actual type: \PHPCuong\Faq\Model\ResourceModel\connectionName; File:
/var/www/html/magento2/vendor/php-cuong/magento2-faqs-extensions/Model/ResourceModel/Faqcat.php

PHPCuong\Faq\Model\ResourceModel\Faq\Grid\Collection
	Incompatible argument type: Required type: \Magento\Framework\DB\Adapter\AdapterInterface. Actual type: \PHPCuong\Faq\Model\ResourceModel\Faq\Grid\connection; File: 

/var/www/html/magento2/vendor/php-cuong/magento2-faqs-extensions/Model/ResourceModel/Faq/Grid/Collection.php

PHPCuong\Faq\Model\ResourceModel\Faqcat\Grid\Collection
	Incompatible argument type: Required type: \Magento\Framework\DB\Adapter\AdapterInterface. Actual type: \PHPCuong\Faq\Model\ResourceModel\Faqcat\Grid\connection; File: 

/var/www/html/magento2/vendor/php-cuong/magento2-faqs-extensions/Model/ResourceModel/Faqcat/Grid/Collection.php

Total Errors Count: 3

[Magento\Framework\Validator\Exception]
Error during compilation

@php-cuong
Copy link
Owner

@Ralfefernandes The problem was fixed in the version 2.1.4

@Ralfefernandes
Copy link
Author

But i tested on Magento version 2.2.0

@php-cuong
Copy link
Owner

I mean, the FAQs extension version 2.1.4, please run composer update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants