mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 7be438b5fc0f91a9dc9b70a0b6a38a6bf1e906b2
7be438b5fc
[DeadCode] Skip non FullyQualified property type on RemoveTypedPropertyNonMockDocblockRector (#6383)
This commit is contained in:
parent
adf15bb534
commit
82270e53ff
@ -4,6 +4,7 @@ declare (strict_types=1);
|
|||||||
namespace Rector\DeadCode\Rector\ClassLike;
|
namespace Rector\DeadCode\Rector\ClassLike;
|
||||||
|
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
|
use PhpParser\Node\Name\FullyQualified;
|
||||||
use PhpParser\Node\Stmt\Class_;
|
use PhpParser\Node\Stmt\Class_;
|
||||||
use PhpParser\Node\Stmt\Property;
|
use PhpParser\Node\Stmt\Property;
|
||||||
use PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode;
|
use PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode;
|
||||||
@ -96,6 +97,9 @@ CODE_SAMPLE
|
|||||||
if (\count($property->props) !== 1) {
|
if (\count($property->props) !== 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!$property->type instanceof FullyQualified) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ($this->isObjectType($property->type, new ObjectType(self::MOCK_OBJECT_CLASS))) {
|
if ($this->isObjectType($property->type, new ObjectType(self::MOCK_OBJECT_CLASS))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '61016bf5307b804df5babb81db27cacbccb12efa';
|
public const PACKAGE_VERSION = '7be438b5fc0f91a9dc9b70a0b6a38a6bf1e906b2';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-10-12 23:33:01';
|
public const RELEASE_DATE = '2024-10-15 23:24:55';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user