mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 724899c28307e4cb1f8a7366ebb76756430da754
724899c283
[TypeDeclaration] Do not use Required::class reference on AutowiredClassMethodOrPropertyAnalyzer (#5788)
This commit is contained in:
parent
664f4e3a6b
commit
dc2205094c
|
@ -8,7 +8,6 @@ use PhpParser\Node\Stmt\ClassMethod;
|
||||||
use PhpParser\Node\Stmt\Property;
|
use PhpParser\Node\Stmt\Property;
|
||||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
|
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
|
||||||
use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
|
use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
|
||||||
use RectorPrefix202404\Symfony\Contracts\Service\Attribute\Required;
|
|
||||||
final class AutowiredClassMethodOrPropertyAnalyzer
|
final class AutowiredClassMethodOrPropertyAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -35,6 +34,6 @@ final class AutowiredClassMethodOrPropertyAnalyzer
|
||||||
if ($nodePhpDocInfo->hasByNames(['required', 'inject'])) {
|
if ($nodePhpDocInfo->hasByNames(['required', 'inject'])) {
|
||||||
return \true;
|
return \true;
|
||||||
}
|
}
|
||||||
return $this->phpAttributeAnalyzer->hasPhpAttributes($node, [Required::class, 'Nette\\DI\\Attributes\\Inject']);
|
return $this->phpAttributeAnalyzer->hasPhpAttributes($node, ['Symfony\\Contracts\\Service\\Attribute\\Required', 'Nette\\DI\\Attributes\\Inject']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '0f1987b0faa8dc1c5e086c9b95457d6018b2cd82';
|
public const PACKAGE_VERSION = '724899c28307e4cb1f8a7366ebb76756430da754';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-01 23:49:16';
|
public const RELEASE_DATE = '2024-04-02 00:52:39';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue