@@ -53,6 +53,7 @@ final class Inflector
5353
5454 /**
5555 * @var string[] The rules for converting a word into its plural form.
56+ * @psalm-var array<string,string>
5657 * The keys are the regular expressions and the values are the corresponding replacements.
5758 */
5859 private array $ pluralizeRules = [
@@ -91,6 +92,7 @@ final class Inflector
9192
9293 /**
9394 * @var string[] The rules for converting a word into its singular form.
95+ * @psalm-var array<string, string>
9496 * The keys are the regular expressions and the values are the corresponding replacements.
9597 */
9698 private array $ singularizeRules = [
@@ -138,6 +140,7 @@ final class Inflector
138140 ];
139141
140142 /**
143+ * @psalm-var array<string, string>
141144 * @var string[] The special rules for converting a word between its plural form and singular form.
142145 * The keys are the special words in singular form, and the values are the corresponding plural form.
143146 */
@@ -285,6 +288,7 @@ final class Inflector
285288
286289 /**
287290 * @param string[] $rules The rules for converting a word into its plural form.
291+ * @psalm-param array<string, string> $rules
288292 * The keys are the regular expressions and the values are the corresponding replacements.
289293 * @return self
290294 */
@@ -307,6 +311,7 @@ public function getPluralizeRules(): array
307311 /**
308312 * @param string[] $rules The rules for converting a word into its singular form.
309313 * The keys are the regular expressions and the values are the corresponding replacements.
314+ * @psalm-param array<string, string> $rules
310315 * @return self
311316 */
312317 public function withSingularizeRules (array $ rules ): self
@@ -327,6 +332,7 @@ public function getSingularizeRules(): array
327332
328333 /**
329334 * @param string[] $rules The special rules for converting a word between its plural form and singular form.
335+ * @psalm-param array<string, string> $rules
330336 * The keys are the special words in singular form, and the values are the corresponding plural form.
331337 * @return self
332338 */
@@ -351,7 +357,7 @@ public function getSpecialRules(): array
351357 * a {@see \Transliterator} can be built for transliteration. Used by {@see toTransliterated()} when intl is available.
352358 * Defaults to {@see TRANSLITERATE_LOOSE}.
353359 * @return self
354- *@see https://secure.php.net/manual/en/transliterator.transliterate.php
360+ * @see https://secure.php.net/manual/en/transliterator.transliterate.php
355361 */
356362 public function withTransliterator ($ transliterator ): self
357363 {
0 commit comments