Browse Source

Merge pull request #11598 from jeremyharris/add-irregular-word

Added irregular word to inflector: receive
Mark Story 8 years ago
parent
commit
bde36fb5b1
2 changed files with 4 additions and 2 deletions
  1. 2 1
      src/Utility/Inflector.php
  2. 2 1
      tests/TestCase/Utility/InflectorTest.php

+ 2 - 1
src/Utility/Inflector.php

@@ -144,7 +144,8 @@ class Inflector
         'goose' => 'geese',
         'foot' => 'feet',
         'foe' => 'foes',
-        'sieve' => 'sieves'
+        'sieve' => 'sieves',
+        'receive' => 'receives',
     ];
 
     /**

+ 2 - 1
tests/TestCase/Utility/InflectorTest.php

@@ -304,7 +304,8 @@ class InflectorTest extends TestCase
             ['blue_octopuses', 'blue_octopus'],
             ['chefs', 'chef'],
             ['', ''],
-            ['pokemon', 'pokemon']
+            ['pokemon', 'pokemon'],
+            ['receives', 'receive'],
         ];
     }