mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
Updated Rector to commit f2b98fdeb375f3437d3f219d3abeb3dd7fe02604
f2b98fdeb3
[CodeQuality] Handle crash on ArrowFunction return first class callable on OptionalParametersAfterRequiredRector (#6550)
This commit is contained in:
parent
c2bf3c7249
commit
4aad4b79b7
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '9bdfa766455d52f9894948f07cdb83a3579f3e39';
|
||||
public const PACKAGE_VERSION = 'f2b98fdeb375f3437d3f219d3abeb3dd7fe02604';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-12-11 13:17:55';
|
||||
public const RELEASE_DATE = '2024-12-11 13:27:45';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -192,7 +192,7 @@ final class PHPStanNodeScopeResolver
|
||||
return;
|
||||
}
|
||||
$this->decorateNodeAttrGroups($node, $mutatingScope, $nodeCallback);
|
||||
if (($node instanceof Expression || $node instanceof Return_ || $node instanceof EnumCase || $node instanceof Cast || $node instanceof YieldFrom || $node instanceof UnaryMinus || $node instanceof UnaryPlus || $node instanceof Throw_ || $node instanceof Empty_ || $node instanceof BooleanNot || $node instanceof Clone_ || $node instanceof ErrorSuppress || $node instanceof BitwiseNot || $node instanceof Eval_ || $node instanceof Print_ || $node instanceof Exit_) && $node->expr instanceof Expr) {
|
||||
if (($node instanceof Expression || $node instanceof Return_ || $node instanceof EnumCase || $node instanceof Cast || $node instanceof YieldFrom || $node instanceof UnaryMinus || $node instanceof UnaryPlus || $node instanceof Throw_ || $node instanceof Empty_ || $node instanceof BooleanNot || $node instanceof Clone_ || $node instanceof ErrorSuppress || $node instanceof BitwiseNot || $node instanceof Eval_ || $node instanceof Print_ || $node instanceof Exit_ || $node instanceof ArrowFunction) && $node->expr instanceof Expr) {
|
||||
$node->expr->setAttribute(AttributeKey::SCOPE, $mutatingScope);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user