Skip to content

Commit

Permalink
Fix psalm-assert-is-false example (#5659)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Apr 22, 2021
1 parent 0d524ec commit 3d908ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/annotating_code/adding_assertions.md
Expand Up @@ -67,7 +67,7 @@ function isValidB(A $a) : bool {
* @psalm-assert-if-false B $a
*/
function isInvalidB(A $a) : bool {
return $a instanceof B || !$a->isValid();
return !$a instanceof B || !$a->isValid();
}

function takesA(A $a) : void {
Expand Down

0 comments on commit 3d908ed

Please sign in to comment.