I Upgraded to Magento 2.2.2 and now di:compile checks if @params comments for constructors are correct. I have many modules where the comments are incorrect but the params are correct, so I want to disable this feature or workaround somehow.

Is there a solution for this problem, or do I have to go through all the plugins and fix this?

Error messages look like:

Incompatible argument type: Required type: ... Actual type: ...

My PHP Version is 7.0.21 so that should not be the problem.

  • 1
    You have to go through all the plugins and fix this. – Kishan Patadia Jan 17 '18 at 10:26
  • This is what I came up with. I just deleted all the comments from 3rd party modules constructors and now it works. – bpoiss Jan 17 '18 at 10:40
  • Ok. Please post answer here with all explanation. It will help others. – Kishan Patadia Jan 17 '18 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.