Skip to content

Fix stdClass shape leakage across unrelated scopes#5477

Closed
SergioChan wants to merge 1 commit intophan:v6from
SergioChan:fix-4789-stdclass-isolation
Closed

Fix stdClass shape leakage across unrelated scopes#5477
SergioChan wants to merge 1 commit intophan:v6from
SergioChan:fix-4789-stdclass-isolation

Conversation

@SergioChan
Copy link
Copy Markdown

@SergioChan SergioChan commented Mar 9, 2026

Summary

Testing

  • php -v (fails in this environment: php: command not found, so Phan tests could not be executed here)
  • manual validation via new regression fixture + expected output asserting @phan-debug-var $var resolves to string

Related

Fixes #4789

rlerdorf added a commit that referenced this pull request Mar 11, 2026
@rlerdorf
Copy link
Copy Markdown
Member

Fixed in #5486

@rlerdorf rlerdorf closed this Mar 11, 2026
rlerdorf added a commit that referenced this pull request Mar 12, 2026
more fixes for #4789, corrects fix in PR #5477
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.

Phan incorrectly infers property type of newly created stdClass based on other assignments of properties on non-related stdClass instances

2 participants