Skip to content

Commit

Permalink
Merge pull request #66 from altapo/patch-1
Browse files Browse the repository at this point in the history
Fix #65
  • Loading branch information
wapmorgan authored Feb 2, 2020
2 parents 9a3fa74 + 034d8cd commit 7212132
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Russian/LastNamesInflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public static function isMutable($name, $gender = null)
if (in_array(S::slice($name, -1), ['а', 'я'], true)) {
return true;
}

// Несклоняемые фамилии независимо от пола (Токаревских)
if (in_array(S::slice($name, -2), ['их'], true))
return false;

if ($gender == static::MALE) {
// Несклоняемые фамилии (Фоминых, Седых / Стецко, Писаренко)
Expand Down

0 comments on commit 7212132

Please sign in to comment.