File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ final class EnglishInflector implements InflectorInterface
18
18
*
19
19
* @see http://english-zone.com/spelling/plurals.html
20
20
*/
21
- private static $ pluralMap = [
21
+ private const PLURAL_MAP = [
22
22
// First entry: plural suffix, reversed
23
23
// Second entry: length of plural suffix
24
24
// Third entry: Whether the suffix may succeed a vocal
@@ -335,7 +335,7 @@ public function singularize(string $plural): array
335
335
// The inner loop $j iterates over the characters of the plural suffix
336
336
// in the plural table to compare them with the characters of the actual
337
337
// given plural suffix
338
- foreach (self ::$ pluralMap as $ map ) {
338
+ foreach (self ::PLURAL_MAP as $ map ) {
339
339
$ suffix = $ map [0 ];
340
340
$ suffixLength = $ map [1 ];
341
341
$ j = 0 ;
You can’t perform that action at this time.
0 commit comments