Skip to content

[CodeQuality] Handle crash on variable variable on OptionalParametersAfterRequiredRector#4226

Merged
samsonasik merged 5 commits intomainfrom
crash-variable
Jun 14, 2023
Merged

[CodeQuality] Handle crash on variable variable on OptionalParametersAfterRequiredRector#4226
samsonasik merged 5 commits intomainfrom
crash-variable

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik requested a review from TomasVotruba as a code owner June 14, 2023 13:08
@samsonasik
Copy link
Copy Markdown
Member Author

Fixed 🎉 /cc @alphpkeemik

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 984f7f2 into main Jun 14, 2023
@samsonasik samsonasik deleted the crash-variable branch June 14, 2023 13:49
$node->expr->setAttribute(AttributeKey::SCOPE, $mutatingScope);
}

$expr = $node;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may need to be cloned to avoid object changed, ref https://3v4l.org/BU1O0

Copy link
Copy Markdown
Member Author

@samsonasik samsonasik Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried debug after while, and it seems the object is followed, and target change is different with original node, so it actually ok, see https://3v4l.org/lR4mF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Processing phpseclib XML.php file fails with message Scope not available

1 participant