mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf
4a2b4a6387
[Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#5294)
This commit is contained in:
parent
3aaf5b74fb
commit
198f3d0446
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue