-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken magic properties #9692
Comments
I found these snippets: https://psalm.dev/r/5c15139bd5<?php
/** @property int $content */
class a {
public function __get($name)
{
return 0;
}
}
/** @var a&object{__tempProperties: "lmao"} */
$r = null;
/** @psalm-trace $v */
$v = $r->content;
|
are we sure that's what we want? Intersecting an object with a |
That's an internal detail, our plugin uses intersections to represent "temporary" properties that may be attached to an object (ugly, I know, will phase them out completely eventually). |
https://psalm.dev/r/5c15139bd5, caused by #9656, working on a fix...
The text was updated successfully, but these errors were encountered: