mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit c9b0c27fa1df366ccf2213888d4351311bf82966
c9b0c27fa1
Skip new self in RenameVariableToMatchNewTypeRector (#5185)
This commit is contained in:
parent
1e0199beb5
commit
7949049389
|
@ -87,6 +87,10 @@ CODE_SAMPLE
|
|||
$assignsOfNew = $this->getAssignsOfNew($node);
|
||||
foreach ($assignsOfNew as $assignOfNew) {
|
||||
$expectedName = $this->expectedNameResolver->resolveForAssignNew($assignOfNew);
|
||||
// skip self name as not useful
|
||||
if ($expectedName === 'self') {
|
||||
continue;
|
||||
}
|
||||
/** @var Variable $variable */
|
||||
$variable = $assignOfNew->var;
|
||||
if ($expectedName === null) {
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'beeba1770967a4f5e59cf21db28a5a1ccae48a2f';
|
||||
public const PACKAGE_VERSION = 'c9b0c27fa1df366ccf2213888d4351311bf82966';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-10-18 08:02:31';
|
||||
public const RELEASE_DATE = '2023-10-18 08:22:57';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue