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
1818 *
1919 * @see http://english-zone.com/spelling/plurals.html
2020 */
21- private static $ pluralMap = [
21+ private const PLURAL_MAP = [
2222 // First entry: plural suffix, reversed
2323 // Second entry: length of plural suffix
2424 // Third entry: Whether the suffix may succeed a vocal
@@ -335,7 +335,7 @@ public function singularize(string $plural): array
335335 // The inner loop $j iterates over the characters of the plural suffix
336336 // in the plural table to compare them with the characters of the actual
337337 // given plural suffix
338- foreach (self ::$ pluralMap as $ map ) {
338+ foreach (self ::PLURAL_MAP as $ map ) {
339339 $ suffix = $ map [0 ];
340340 $ suffixLength = $ map [1 ];
341341 $ j = 0 ;
You can’t perform that action at this time.
0 commit comments