mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 4a2811d0be372ef590c253a493f49bbb6745b524
4a2811d0be
[Naming] Handle crash with numeric-string doc on RenamePropertyToMatchTypeRector (#5670)
This commit is contained in:
parent
d148fa379c
commit
dc6d59d8bb
|
@ -7,6 +7,7 @@ use PhpParser\Node\Stmt\ClassLike;
|
|||
use PhpParser\Node\Stmt\Property;
|
||||
use Rector\Naming\ValueObject\PropertyRename;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202402\Webmozart\Assert\InvalidArgumentException;
|
||||
final class PropertyRenameFactory
|
||||
{
|
||||
/**
|
||||
|
@ -22,6 +23,10 @@ final class PropertyRenameFactory
|
|||
{
|
||||
$currentName = $this->nodeNameResolver->getName($property);
|
||||
$className = (string) $this->nodeNameResolver->getName($classLike);
|
||||
return new PropertyRename($property, $expectedName, $currentName, $classLike, $className, $property->props[0]);
|
||||
try {
|
||||
return new PropertyRename($property, $expectedName, $currentName, $classLike, $className, $property->props[0]);
|
||||
} catch (InvalidArgumentException $exception) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '8b1a181c243346b1c47c50f3e4513b117ebebc9d';
|
||||
public const PACKAGE_VERSION = '4a2811d0be372ef590c253a493f49bbb6745b524';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-28 18:18:08';
|
||||
public const RELEASE_DATE = '2024-02-28 19:33:15';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue