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
Allow assertions on mutable object properties. #7252
Allow assertions on mutable object properties. #7252
Conversation
All of the functionality is already there, we just have to not prevent it.
Also, thanks @SCIF for the property assertion support, I hadn't noticed that until today! |
Hi @AndrolGenhald , thanks for this PR. I have found another bug #6770 which, probably, is fixed by this PR, so could you please add tests of magic properties? TBH, I didn't notice |
@SCIF I'll take a look at that one too, currently digging through references and trying to add support for that. It doesn't look like Psalm really tracks references themselves yet, just whether or not they exist. I'm not sure if |
After some thought, I think the solution I was working towards (adding a reference list to In the meantime, I'd prefer to just mark the failing tests as skipped and go ahead and get this merged. With how little most people use references I don't really expect it to be an issue in practice, even though it'd be nice if it worked correctly. |
Thanks! |
Follow up to #4619 to allow assertions on mutable properties as well.
All of the functionality is already there, we just have to not prevent it.