Skip to content

Commit 8a90f72

Browse files
Merge branch '4.4' into 5.1
* 4.4: Changed private static array-properties to const
1 parent 0b171a3 commit 8a90f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Inflector/EnglishInflector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)