Skip to content

[ECP-9605] Fix broken Magento 2.4.4 and 2.4.5 compatibility #2875

Merged
khushboo-singhvi merged 5 commits intomainfrom
ECP-9605
Feb 5, 2025
Merged

[ECP-9605] Fix broken Magento 2.4.4 and 2.4.5 compatibility #2875
khushboo-singhvi merged 5 commits intomainfrom
ECP-9605

Conversation

@candemiralp
Copy link
Contributor

@candemiralp candemiralp commented Feb 5, 2025

Description

Even though PHP 8 supports mix method return types, Magento 2 does not support it and throws exception while compiling the generated files on 2.4.4 and 2.4.5. This PR replaces the mix return types with single return types.

Besides that, Magento 2.4.4 compatibility is broken due to the required version of magento/module-instant-purchase on #2828. The required version has been downgraded to support Magento 2.4.4 and 2.4.5.

Tested scenarios

  • Installation and compilation on Magento 2.4.4 and 2.4.5
  • Payment flow on the given versions

Fixes #2870

@candemiralp candemiralp added the Fix Indicates a bug fix label Feb 5, 2025
@candemiralp candemiralp requested a review from a team as a code owner February 5, 2025 08:27
@candemiralp candemiralp changed the title [ECP] Fix broken Magento 2.4.4 and 2.4.5 compatibility [ECP-9605] Fix broken Magento 2.4.4 and 2.4.5 compatibility Feb 5, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2025

@khushboo-singhvi khushboo-singhvi merged commit 6c37baa into main Feb 5, 2025
15 checks passed
@khushboo-singhvi khushboo-singhvi deleted the ECP-9605 branch February 5, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Indicates a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ECP-9605][ECP-9582] Magento 2.4.4 Compatibility with Later releases

4 participants