Updated Rector to commit d55a35bcdede830d3927de1c11e0f7f0d12ee9e4

d55a35bcde [CodeQuality] Skip magic property fetch on IssetOnPropertyObjectToPropertyExistsRector (#5163)
This commit is contained in:
Tomas Votruba 2023-10-13 15:56:28 +00:00
parent d06e2fcb41
commit 727c62f465
2 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,7 @@ use PhpParser\Node\Expr\BinaryOp\NotIdentical;
use PhpParser\Node\Expr\BooleanNot;
use PhpParser\Node\Expr\Isset_;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\String_;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\Php\PhpPropertyReflection;
@ -141,6 +142,9 @@ CODE_SAMPLE
}
private function shouldSkipForPropertyTypeDeclaration(PropertyFetch $propertyFetch) : bool
{
if (!$propertyFetch->name instanceof Identifier) {
return \true;
}
$phpPropertyReflection = $this->reflectionResolver->resolvePropertyReflectionFromPropertyFetch($propertyFetch);
if (!$phpPropertyReflection instanceof PhpPropertyReflection) {
return \false;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '396f1989b8605b261cfdfebe45ee855e9fb70ac4';
public const PACKAGE_VERSION = 'd55a35bcdede830d3927de1c11e0f7f0d12ee9e4';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-10-13 21:36:46';
public const RELEASE_DATE = '2023-10-13 22:53:35';
/**
* @var int
*/