Updated Rector to commit 7be438b5fc0f91a9dc9b70a0b6a38a6bf1e906b2

7be438b5fc [DeadCode] Skip non FullyQualified property type on RemoveTypedPropertyNonMockDocblockRector (#6383)
This commit is contained in:
Tomas Votruba 2024-10-15 21:27:10 +00:00
parent adf15bb534
commit 82270e53ff
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\DeadCode\Rector\ClassLike;
use PhpParser\Node;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Property;
use PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode;
@ -96,6 +97,9 @@ CODE_SAMPLE
if (\count($property->props) !== 1) {
continue;
}
if (!$property->type instanceof FullyQualified) {
continue;
}
if ($this->isObjectType($property->type, new ObjectType(self::MOCK_OBJECT_CLASS))) {
continue;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '61016bf5307b804df5babb81db27cacbccb12efa';
public const PACKAGE_VERSION = '7be438b5fc0f91a9dc9b70a0b6a38a6bf1e906b2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-12 23:33:01';
public const RELEASE_DATE = '2024-10-15 23:24:55';
/**
* @var int
*/