Skip to content

Commit

Permalink
Updated Rector to commit 7be438b5fc0f91a9dc9b70a0b6a38a6bf1e906b2
Browse files Browse the repository at this point in the history
rectorphp/rector-src@7be438b [DeadCode] Skip non FullyQualified property type on RemoveTypedPropertyNonMockDocblockRector (#6383)
  • Loading branch information
TomasVotruba committed Oct 15, 2024
1 parent adf15bb commit 82270e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
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;
Expand Down Expand Up @@ -96,6 +97,9 @@ public function refactor(Node $node) : ?Node
if (\count($property->props) !== 1) {
continue;
}
if (!$property->type instanceof FullyQualified) {
continue;
}
if ($this->isObjectType($property->type, new ObjectType(self::MOCK_OBJECT_CLASS))) {
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 82270e5

Please sign in to comment.