Updated Rector to commit f2b98fdeb375f3437d3f219d3abeb3dd7fe02604

f2b98fdeb3 [CodeQuality] Handle crash on ArrowFunction return first class callable on OptionalParametersAfterRequiredRector (#6550)
This commit is contained in:
Tomas Votruba 2024-12-11 13:30:18 +00:00
parent c2bf3c7249
commit 4aad4b79b7
2 changed files with 3 additions and 3 deletions

View File

@ -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
*/

View File

@ -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;
}