mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 07:22:43 +02:00
Updated Rector to commit 9bdfa766455d52f9894948f07cdb83a3579f3e39
9bdfa76645
[CodeQuality] Handle crash array dim fetch on OptionalParametersAfterRequiredRector (#6549)
This commit is contained in:
parent
e90ef5f38c
commit
c2bf3c7249
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '0a235409f5f51a757dccc2dbbca0e695c9cb32a4';
|
||||
public const PACKAGE_VERSION = '9bdfa766455d52f9894948f07cdb83a3579f3e39';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-12-11 19:50:02';
|
||||
public const RELEASE_DATE = '2024-12-11 13:17:55';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -196,8 +196,16 @@ final class PHPStanNodeScopeResolver
|
||||
$node->expr->setAttribute(AttributeKey::SCOPE, $mutatingScope);
|
||||
return;
|
||||
}
|
||||
if ($node instanceof PostInc || $node instanceof PostDec || $node instanceof PreInc || $node instanceof PreDec || $node instanceof ArrayDimFetch) {
|
||||
if ($node instanceof PostInc || $node instanceof PostDec || $node instanceof PreInc || $node instanceof PreDec) {
|
||||
$node->var->setAttribute(AttributeKey::SCOPE, $mutatingScope);
|
||||
return;
|
||||
}
|
||||
if ($node instanceof ArrayDimFetch) {
|
||||
$node->var->setAttribute(AttributeKey::SCOPE, $mutatingScope);
|
||||
if ($node->dim instanceof Expr) {
|
||||
$node->dim->setAttribute(AttributeKey::SCOPE, $mutatingScope);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if ($node instanceof Assign || $node instanceof AssignOp) {
|
||||
$this->processAssign($node, $mutatingScope);
|
||||
|
Loading…
x
Reference in New Issue
Block a user