Skip to content

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

Open
@karyna-t

Description

@karyna-t

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

Related issues:
#34263
#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.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions