Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91b7bdd

Browse filesBrowse files
committed
minor #47269 [String] fix AsciiSlugger tests if transliterator_transliterate() isn't present (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [String] fix AsciiSlugger tests if transliterator_transliterate() isn't present | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 7020ade fix AsciiSlugger tests if transliterator_transliterate() isn't present
2 parents bd09cb8 + 7020ade commit 91b7bdd
Copy full SHA for 91b7bdd

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public function provideSlugTests(): iterable
3232
yield ['a', 'ä', '-', 'fr'];
3333
yield ['ae', 'ä', '-', 'de'];
3434
yield ['ae', 'ä', '-', 'de_fr']; // Ensure we get the parent locale
35-
yield ['g', 'ғ', '-'];
36-
yield ['gh', 'ғ', '-', 'uz'];
37-
yield ['gh', 'ғ', '-', 'uz_fr']; // Ensure we get the parent locale
35+
yield [\function_exists('transliterator_transliterate') ? 'g' : '', 'ғ', '-'];
36+
yield [\function_exists('transliterator_transliterate') ? 'gh' : '', 'ғ', '-', 'uz'];
37+
yield [\function_exists('transliterator_transliterate') ? 'gh' : '', 'ғ', '-', 'uz_fr']; // Ensure we get the parent locale
3838
}
3939

4040
/** @dataProvider provideSlugTests */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.