magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

Add PHP 8 Union Types Support for tests in the codebase #34265

Open karyna-t opened 3 years ago

karyna-t commented 3 years ago

In PHP 8, new Union types feature was introduced. (see details https://wiki.php.net/rfc/union_types_v2)

Related issues: https://github.com/magento/magento2/issues/34263 https://github.com/magento/magento2/issues/34264

In the scope of this ticket, we need to add Union Types support for the places where we're using an information about parameter's class - for Tests:

Expected result (*)

Magento should not break when union types are used. Tests should properly check all dependencies and so on.

Actual result (*)

Right now Magento can't handle union types introduced in php 8.

m2-assistant[bot] commented 3 years ago

Hi @karyna-tsymbal-atwix. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Lima commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Lima, here is your Magento Instance: https://ac46313121f54c0355dfdb80782219c1.instances.magento-community.engineering Admin access: https://ac46313121f54c0355dfdb80782219c1.instances.magento-community.engineering/admin_7d08 Login: 03ed772e Password: 2cb4e0d8335a

m2-assistant[bot] commented 1 year ago

Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Hotel commented 1 year ago

Hello @karyna-tsymbal-atwix,

Thanks for the reporting and collaboration!

We have gone through the main description and found that this is not related to any bug in Magento but it can be a good feature to have in Magento.

Hence marking this ticket as a feature request to process further.

Thank you.