You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation about assertions it is mentioned that "Psalm has three docblock annotations that allow you to specify that a function verifies facts about variables and properties:"(https://psalm.dev/docs/annotating_code/adding_assertions/)
I tried to make it work and look for it in psalm's codebase but couldn't find how to do so with properties. Here is an example: https://psalm.dev/r/3c3a6cedfe
Am I doing something wrong ?
The text was updated successfully, but these errors were encountered:
muglug
changed the title
Assertions on properties
@psalm-assert-if-true doesn’t work for $this properties
Aug 9, 2019
This change is part of story #12537
Due to an issue with Psalm we introduced redundant null checks
(vimeo/psalm#1994). Now that we know it
actually is a bug and are waiting for the release of the patch, a
@psalm-suppress comment has been added referencing said issue. Once
Psalm is updated, the suppress can be removed and it should still work.
Change-Id: I0384b17f7b3d064042cd2c44d2445910547eb8b8
2e3s
pushed a commit
to 2e3s/psalm
that referenced
this issue
Sep 29, 2019
Hello there,
In the documentation about assertions it is mentioned that "Psalm has three docblock annotations that allow you to specify that a function verifies facts about variables and properties:"(https://psalm.dev/docs/annotating_code/adding_assertions/)
I tried to make it work and look for it in psalm's codebase but couldn't find how to do so with properties. Here is an example: https://psalm.dev/r/3c3a6cedfe
Am I doing something wrong ?
The text was updated successfully, but these errors were encountered: