Skip to content

The problem with sprintf(Magento\Framwork\Phrase()) construction in PHP >= 8 #34085

Closed
@andrewbess

Description

@andrewbess

Description (*)

We found a problem with sprintf(__()) and sprintf(Magento\Framwork\Phrase()) construction in PHP >= 8.
The error looks like "Expected parameter of type 'string', 'Magento\Framework\Phrase' provided".
This problem should be found and fixed in Magento codebase.
Currently, there are about 20 problems with provided constructions.

We need to change constructions to sprintf(__()->render()).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions