mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-20 01:52:22 +00:00
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);
|
$camelCases = Strings::matchAll($currentName, self::CAMELCASE_REGEX);
|
||||||
$resolvedName = '';
|
$resolvedName = '';
|
||||||
foreach ($camelCases as $camelCase) {
|
foreach ($camelCases as $camelCase) {
|
||||||
$value = $this->inflector->singularize($camelCase[self::CAMELCASE]);
|
if (\in_array($camelCase[self::CAMELCASE], ['is', 'has', 'cms'], \true)) {
|
||||||
if (\in_array($camelCase[self::CAMELCASE], ['is', 'has'], \true)) {
|
|
||||||
$value = $camelCase[self::CAMELCASE];
|
$value = $camelCase[self::CAMELCASE];
|
||||||
|
} else {
|
||||||
|
$value = $this->inflector->singularize($camelCase[self::CAMELCASE]);
|
||||||
}
|
}
|
||||||
$resolvedName .= $value;
|
$resolvedName .= $value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'b5f434b53c4c6fceb88c19d4656e4f11c6092f3c';
|
public const PACKAGE_VERSION = '4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2023-11-27 16:01:26';
|
public const RELEASE_DATE = '2023-11-28 11:41:03';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user