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

Removes some code for PHP versions we no longer support. #39202

Conversation

hostep
Copy link
Contributor

@hostep hostep commented Sep 23, 2024

Description (*)

Found some code in the codebase that no longer makes sense if we only support PHP 8.2 (soon 8.3?) and higher:

Related Pull Requests

Fixed Issues (if relevant)

None

Manual testing scenarios (*)

  1. Check that the changed classes still function like they should function

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Resolved issues:

  1. resolves [Issue] Removes some code for PHP versions we no longer support. #39361: Removes some code for PHP versions we no longer support.

Resolved issues:

  1. resolves [Issue] Removes some code for PHP versions we no longer support. #39368: Removes some code for PHP versions we no longer support.

Copy link

m2-assistant bot commented Sep 23, 2024

Hi @hostep. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.
❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@hostep
Copy link
Contributor Author

hostep commented Sep 23, 2024

@magento run all tests

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

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

Hey @hostep
Thanks for the PR, it's great update.
✅ All looks ok for me.

@Den4ik
Copy link
Contributor

Den4ik commented Sep 24, 2024

@magento run Integration Tests

@engcom-Hotel engcom-Hotel added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Sep 24, 2024
@Priyakshic Priyakshic added the Project: Community Picked PRs upvoted by the community label Oct 15, 2024
@engcom-Bravo engcom-Bravo added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Oct 16, 2024
@engcom-Charlie engcom-Charlie self-assigned this Oct 16, 2024
@engcom-Charlie
Copy link
Contributor

Hi @hostep,

Thank you for the contribution!

By looking at the code, the changes looks good to me. No manual testing is required for now. We will check the build results further.

If you know any concrete manual step to reproduce, can you please mention the same.

Thank you!

@engcom-Charlie
Copy link
Contributor

@magento run all tests

@engcom-Charlie
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests EE

@engcom-Charlie
Copy link
Contributor

As per this, moving this PR to Extended Testing as the build is failing.

@engcom-Charlie
Copy link
Contributor

@magento run all tests

@engcom-Charlie
Copy link
Contributor

@magento run Integration Tests, Unit Tests

@hostep
Copy link
Contributor Author

hostep commented Oct 28, 2024

If you know any concrete manual step to reproduce, can you please mention the same.

I'm not sure what you mean with this question? Could you elaborate a bit?

@engcom-Charlie
Copy link
Contributor

Moving this PR to Merge in Progress as build is green

If you know any concrete manual step to reproduce, can you please mention the same.

I'm not sure what you mean with this question? Could you elaborate a bit?

If in case, you might know the exact area/feature where this modified/deleted code was getting used, we can check those features manually.

But for now, as I have mentioned; code looks good to me, hence moving this PR to Merge in Progress as build is green.

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 8cb04e3 into magento:2.4-develop Nov 12, 2024
12 checks passed
@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Nov 12, 2024

Thanks for cleanup!
Would be great to clean also

@hostep
Copy link
Contributor Author

hostep commented Nov 12, 2024

Makes sense indeed @ihor-sviziev.
I currently lack the time to deal with those, but will try to keep it in the back of my mind unless someone else picks it up.

@engcom-Charlie
Copy link
Contributor

@magento create issue

@hostep
Copy link
Contributor Author

hostep commented Nov 13, 2024

@engcom-Charlie: this is very confusing, we should create a new issue with a good description based on Ihor's comments

@ihor-sviziev
Copy link
Contributor

@hostep I just created task for that #39362

@engcom-Charlie
Copy link
Contributor

@magento create issue

Hi @hostep and @ihor-sviziev,

This issue created is for current PR as there were no issue attached as a part of process. So we have created it.

@ihor-sviziev #39362 will be consider as a new issue for the comments you mentioned in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: ready for testing Project: Community Picked PRs upvoted by the community Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Status: Recently Merged
8 participants