mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 615913ddaf7b0df3a2c56d50cf6973408aa1a983
615913ddaf
Use createFromNode() from PhpDocInfoFactory on RemoveUnusedPrivateMethodRector (#6511)
This commit is contained in:
parent
a6f87828b7
commit
87ea771410
@ -11,6 +11,7 @@ use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
||||
use PHPStan\Reflection\ClassReflection;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
|
||||
use Rector\DeadCode\NodeAnalyzer\IsClassMethodUsedAnalyzer;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
@ -144,8 +145,8 @@ CODE_SAMPLE
|
||||
if (!$classMethod->isPublic()) {
|
||||
continue;
|
||||
}
|
||||
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($classMethod);
|
||||
if ($phpDocInfo->hasByName('dataProvider')) {
|
||||
$phpDocInfo = $this->phpDocInfoFactory->createFromNode($classMethod);
|
||||
if ($phpDocInfo instanceof PhpDocInfo && $phpDocInfo->hasByName('dataProvider')) {
|
||||
$dataProvider = $phpDocInfo->getByName('dataProvider');
|
||||
if ($dataProvider instanceof PhpDocTagNode && $dataProvider->value instanceof GenericTagValueNode) {
|
||||
$dataProviderMethod = $class->getMethod($dataProvider->value->value);
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '1d7208b816e8c12d7732a2d633b44d8e8bc0041e';
|
||||
public const PACKAGE_VERSION = '615913ddaf7b0df3a2c56d50cf6973408aa1a983';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-11-25 15:53:11';
|
||||
public const RELEASE_DATE = '2024-11-25 15:10:37';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user