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

[BUG] PHP7.4 incompatibility #386

Closed
walter-smulders-diploc opened this issue Jul 19, 2024 · 3 comments
Closed

[BUG] PHP7.4 incompatibility #386

walter-smulders-diploc opened this issue Jul 19, 2024 · 3 comments

Comments

@walter-smulders-diploc
Copy link

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest version (1.15.2) of the plugin using PHP7.4
  2. Run s:upgrade
  3. Run s:d:compile
  4. Compile will fail because the following classes have a comma in __construct:
  • Controller/Adminhtml/Shipment/GetSmartReturnLabel.php
  • Service/Shipment/ShipmentLoader.php
  • Controller/Adminhtml/Order/MassChangeMulticolli.php

Expected result
Compilation should succeed without error

Actual result
Compilation fails because some classes are not PHP7.4 compatible but composer.json states the module should be.

Workaround
Update the 3 classes to be PHP7.4 compatible

@bmelman
Copy link

bmelman commented Jul 23, 2024

comfirmed starting version 1.14.0 fails to compile on PHP7.4

@JorisPostNL
Copy link
Contributor

Hi @walter-smulders-diploc amd @bmelman,

Thank you for bringing this to our attention. We are aware of the issue and are currently developing a fix which will be included in the next release.

Kind regards,
Joris - PostNL

@YachYaroslav
Copy link

Here is a patch if someone is interested in a quick fix:

removePHP80FunctionArgumentListTrailingCommas.zip

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

No branches or pull requests

4 participants