mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 3a7c8fee6aaeccb3d48beb6731743872ac0ecdd1
3a7c8fee6a
[Arguments] Skip First class callable on FunctionArgumentDefaultValueReplacerRector (#5966)
This commit is contained in:
parent
af3a0c090d
commit
a23972fd51
@ -87,6 +87,9 @@ final class ArgumentDefaultValueReplacer
|
||||
*/
|
||||
private function processArgs($expr, ReplaceArgumentDefaultValueInterface $replaceArgumentDefaultValue) : ?Expr
|
||||
{
|
||||
if ($expr->isFirstClassCallable()) {
|
||||
return null;
|
||||
}
|
||||
$position = $replaceArgumentDefaultValue->getPosition();
|
||||
$particularArg = $expr->getArgs()[$position] ?? null;
|
||||
if (!$particularArg instanceof Arg) {
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'fb6bbeee075ff5b71901bacc8031abc4738b54d4';
|
||||
public const PACKAGE_VERSION = '3a7c8fee6aaeccb3d48beb6731743872ac0ecdd1';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-06-14 07:10:24';
|
||||
public const RELEASE_DATE = '2024-06-14 16:25:32';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user