diff --git a/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php b/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php index 95564d49..a6a9b347 100644 --- a/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php +++ b/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php @@ -54,7 +54,7 @@ public static function getPlural(): iterable yield new Transformation(new Pattern('/el$/i'), 'eis'); yield new Transformation(new Pattern('/al$/i'), 'ais'); yield new Transformation(new Pattern('/(z|r)$/i'), '\1es'); - yield new Transformation(new Pattern('/(s)$/i'), '\1'); + yield new Transformation(new Pattern('/(s|x)$/i'), '\1'); yield new Transformation(new Pattern('/$/'), 's'); } diff --git a/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php b/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php index 58c34f9b..9ce3a278 100644 --- a/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php +++ b/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php @@ -29,10 +29,8 @@ public static function getPlural(): iterable */ private static function getDefault(): iterable { - yield new Pattern('tórax'); yield new Pattern('tênis'); yield new Pattern('ônibus'); yield new Pattern('lápis'); - yield new Pattern('fênix'); } }