Updated Rector to commit 4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf

4a2b4a6387 [Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#5294)
This commit is contained in:
Tomas Votruba 2023-11-28 04:43:10 +00:00
parent 3aaf5b74fb
commit 198f3d0446
2 changed files with 5 additions and 4 deletions

View File

@ -80,9 +80,10 @@ final class InflectorSingularResolver
$camelCases = Strings::matchAll($currentName, self::CAMELCASE_REGEX);
$resolvedName = '';
foreach ($camelCases as $camelCase) {
$value = $this->inflector->singularize($camelCase[self::CAMELCASE]);
if (\in_array($camelCase[self::CAMELCASE], ['is', 'has'], \true)) {
if (\in_array($camelCase[self::CAMELCASE], ['is', 'has', 'cms'], \true)) {
$value = $camelCase[self::CAMELCASE];
} else {
$value = $this->inflector->singularize($camelCase[self::CAMELCASE]);
}
$resolvedName .= $value;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b5f434b53c4c6fceb88c19d4656e4f11c6092f3c';
public const PACKAGE_VERSION = '4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-27 16:01:26';
public const RELEASE_DATE = '2023-11-28 11:41:03';
/**
* @var int
*/