From 36b341e4256d87cee6cbc654ea22c36e86e892be Mon Sep 17 00:00:00 2001 From: Vladislav Iurciuc Date: Wed, 17 Jan 2024 18:31:51 +0200 Subject: [PATCH] [String] Correct inflection of axis --- src/Symfony/Component/String/Inflector/EnglishInflector.php | 3 +++ .../Component/String/Tests/Inflector/EnglishInflectorTest.php | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Symfony/Component/String/Inflector/EnglishInflector.php b/src/Symfony/Component/String/Inflector/EnglishInflector.php index e1bcd87b2ce65..14578cfaf70e8 100644 --- a/src/Symfony/Component/String/Inflector/EnglishInflector.php +++ b/src/Symfony/Component/String/Inflector/EnglishInflector.php @@ -166,6 +166,9 @@ final class EnglishInflector implements InflectorInterface // Fourth entry: Whether the suffix may succeed a consonant // Fifth entry: plural suffix, normal + // axes (axis) + ['sixa', 4, false, false, 'axes'], + // criterion (criteria) ['airetirc', 8, false, false, 'criterion'], diff --git a/src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php b/src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php index cf66bf05b660c..530c5fbd0d663 100644 --- a/src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php +++ b/src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php @@ -185,6 +185,7 @@ public static function pluralizeProvider() ['arch', 'arches'], ['atlas', 'atlases'], ['axe', 'axes'], + ['axis', 'axes'], ['baby', 'babies'], ['bacterium', 'bacteria'], ['base', 'bases'],