Skip to content

Commit

Permalink
Remove totally unnessesary PHP version ifcondition. I tested it on 8.…
Browse files Browse the repository at this point in the history
…1 8.2 8.3 - all worked good.
  • Loading branch information
vpodorozh committed Apr 9, 2024
1 parent d3dedf0 commit c78c7bd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/code/Magento/Directory/Test/Unit/Model/CurrencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,12 @@ function (array $args) {
*/
public function getOutputFormatDataProvider(): array
{
$ar_DZ = "\u{062C}.\u{0645}.\u{200F}\u{00A0}%s";
if (version_compare(PHP_VERSION, '8.2', '>=')) {
$ar_DZ = "%s\u{00A0}\u{062C}.\u{0645}.\u{200F}";
}
return [
'en_US:USD' => ['en_US', 'USD', '$%s'],
'en_US:PLN' => ['en_US', 'PLN', "PLN\u{00A0}%s"],
'en_US:PKR' => ['en_US', 'PKR', "PKR\u{00A0}%s"],
'af_ZA:VND' => ['af_ZA', 'VND', "\u{20AB}%s"],
'ar_DZ:EGP' => ['ar_DZ', 'EGP', $ar_DZ],
'ar_DZ:EGP' => ['ar_DZ', 'EGP', "%s\u{00A0}\u{062C}.\u{0645}.\u{200F}"],
'ar_SA:USD' => ['ar_SA', 'USD', "%s\u{00A0}US$"],
'ar_SA:LBP' => ['ar_SA', 'LBP', "%s\u{00A0}\u{0644}.\u{0644}.\u{200F}"],
'fa_IR:USD' => ['fa_IR', 'USD', "\u{200E}$%s"],
Expand Down

0 comments on commit c78c7bd

Please sign in to comment.