From c2b0320e3ffd61f8b9e3d4d02f9bd159f2dfbebf Mon Sep 17 00:00:00 2001 From: Vladislav Iurciuc Date: Fri, 12 Jan 2024 11:51:16 +0200 Subject: [PATCH] Correct pluralization of axis --- lib/Doctrine/Inflector/Rules/English/Inflectible.php | 1 + .../Tests/Inflector/Rules/English/EnglishFunctionalTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Doctrine/Inflector/Rules/English/Inflectible.php b/lib/Doctrine/Inflector/Rules/English/Inflectible.php index ee3bae6..04b6d00 100644 --- a/lib/Doctrine/Inflector/Rules/English/Inflectible.php +++ b/lib/Doctrine/Inflector/Rules/English/Inflectible.php @@ -93,6 +93,7 @@ public static function getPlural(): iterable public static function getIrregular(): iterable { yield new Substitution(new Word('atlas'), new Word('atlases')); + yield new Substitution(new Word('axis'), new Word('axes')); yield new Substitution(new Word('axe'), new Word('axes')); yield new Substitution(new Word('beef'), new Word('beefs')); yield new Substitution(new Word('blouse'), new Word('blouses')); diff --git a/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php b/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php index 7f9d346..19df9e4 100644 --- a/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php +++ b/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php @@ -390,6 +390,7 @@ public function dataSingularsUninflectedWhenSingularized(): array ['fascia', 'fascium'], ['status', 'statu'], ['campus', 'campu'], + ['axis', 'axes'], ]; }