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

PHP 7.4/8 compatibility (OpenMage 20.x) #1256

Merged
merged 78 commits into from
Aug 28, 2023
Merged

Conversation

cmuench
Copy link
Member

@cmuench cmuench commented Jul 16, 2022

Magerun pull-request check-list:

  • Pull request against develop branch (if not, just close and create a new one against it)
  • README.md reflects changes (if any)

Subject: PHP 8.1 compatibility

Fixes #1133
See Checklist: #1275

Changes proposed in this pull request:

  • Upgrade Symfony to 4.4
  • Upgrade PHPUnit to 9.x
  • Supress deprecation warnings (to be compatible with PHP 7.4)
  • Drop support for PHP <7.4
  • Test CI with OpenMage 20.
  • Backport classes from n98-magerun2
  • Optimize code style

@colinmollenhour
Copy link

This is a huge PR, kudos for the hard work! Is it in working condition? Anything holding up the merge?

@cmuench
Copy link
Member Author

cmuench commented Jul 19, 2023

@colinmollenhour the installer is broken. If the installer works then we see the test results. My gut feeling is that we will find some minor todos then.
Sadly I have not enough energy to finish the PR.
In the daily business I do work with M1 anymore for years.

@sreichel
Copy link
Collaborator

sreichel commented Jul 20, 2023

@cmuench @colinmollenhour installer is fixed. Sample data needs some work and some unit tests have to be fixed. I've also no time at the moment.

edit: installer works only for OpenMage (???)

@colinmollenhour
Copy link

Perhaps this PR could be merged and tagged in it's current state as 2.4.0-beta1 or 3.0.0-beta1? Would be a shame if this sat unused for a long time..

@cmuench
Copy link
Member Author

cmuench commented Jul 20, 2023

@colinmollenhour @sreichel I just reviewed.
our are right @sreichel. The installer was already fixed.
Currently we have 48 broken tests.
Example job log: https://github.com/cmuench/n98-magerun/actions/runs/5119227073/job/13852779165#step:10:608

@cmuench
Copy link
Member Author

cmuench commented Jul 20, 2023

Perhaps this PR could be merged and tagged in it's current state as 2.4.0-beta1 or 3.0.0-beta1? Would be a shame if this sat unused for a long time..

Some commands seem to be broken. So it's not 100% compatible at the moment.

@sreichel
Copy link
Collaborator

Another problem is that there are no tagged releases for Magento 1.x

@cmuench
Copy link
Member Author

cmuench commented Jul 20, 2023

Another problem is that there are no tagged releases for Magento 1.x

You mean a tag for n98-magerun?

@sreichel
Copy link
Collaborator

No, magento-mirror has no composer installable releases.

So atm it only works for OM. (or did I missed something?)

@sreichel
Copy link
Collaborator

sreichel commented Jul 20, 2023

@colinmollenhour i would not like a release at current state. Seems I've missed one or two commands that can be easily fixed.

UnitTests v9 seems no big deal, but I've no time for.

@sreichel
Copy link
Collaborator

@cmuench nice :) maybe I've some time during next days.

@cmuench cmuench marked this pull request as ready for review August 28, 2023 20:24
@cmuench cmuench merged commit 5ceb822 into netz98:develop Aug 28, 2023
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.

PHP 7.4/8 support (OpenMage 20.x)
3 participants