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

Magento 2.4.7: Fix parent constructor call in Abandoned Grid #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomreece
Copy link

In the recently released Magento 2.4.7 I am getting this error:

treece@Toms-Work-MacBook treece1 % bin/magento setup:di:compile
Compilation was started.
Interception cache generation... 6/9 [==================>---------]  66% 30 secs 492.0 MiBErrors during compilation:
	Signifyd\Connect\Block\Adminhtml\Shopcart\Abandoned\Grid
		Incompatible argument type: Required type: \Magento\Framework\Url\DecoderInterface. Actual type: array; File:
/Users/treece/mystic-mountain/treece1/vendor/signifyd/module-connect/Block/Adminhtml/Shopcart/Abandoned/Grid.php

Total Errors Count: 1

In Log.php line 92:

  Error during compilation


setup:di:compile

I think the call to this parent Grid constructor is incorrect but I'm not 100% sure
https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Reports/Block/Adminhtml/Shopcart/Abandoned/Grid.php#L45

After this change, setup:di:compile works as expected in Magento 2.4.7 using PHP 8.3

@tomreece tomreece changed the title Magento 2.4.7: Fix parent constructor call Magento 2.4.7: Fix parent constructor call in Abandoned Grid Apr 10, 2024
@valenciaisaza
Copy link

Waiting for this fix to be merged, to update Magento

@gabriel3iri
Copy link

Do you guys know when this will be merged? my company is updating to 2.4.7 and this is kinda holding us back. Thanks

@tomreece
Copy link
Author

👋 Any update?

@SeanWahoo
Copy link

SeanWahoo commented Apr 26, 2024 via email

@tomreece
Copy link
Author

@SeanWahoo That's what we've done for our test instances but what about real users who use the Signifyd extension directly from official. I guess they'll figure it out or ask us for a patch. 🤷

@@ -37,7 +37,7 @@ public function __construct(
) {
$this->jsonSerializer = $jsonSerializer;
$this->configHelper = $configHelper;
parent::__construct($context, $backendHelper, $quotesFactory, $data);
parent::__construct($context, $backendHelper, $quotesFactory, null, null, $data);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bro, you need to check the parent. You have to pass $urlDecoder and $parameters, not null. It will not break because parent constructs them anyways in case of null. Still better to keep the flexibility and do it correctly.

@ebanolopes
Copy link
Collaborator

Hello, Ébano, from Signifyd. We'll be releasing a new version on the upcoming weeks. This PR will not be directly merged as we need to change somethings due to other changes on our end. Find on below link a patch with the official solution which will get released soon.

https://osfglobalinc-my.sharepoint.com/:u:/g/personal/ebano_lopes_osf_digital/EcJMW1Ne0xBCg83uri9pN74BcMIjlbYhpKSszarETJxfdA?e=SAyInd

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

Successfully merging this pull request may close these issues.

6 participants