Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Nov 13, 2023
1 parent 2da694a commit 5470724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ public static function analyze(
)) {
// if the error is suppressed, do not treat it as never anymore
$context->vars_in_scope[$var_id] = Type::getMixed();
$context->has_returned = false;
}

$context->inside_assignment = $was_in_assignment;
Expand Down
2 changes: 1 addition & 1 deletion tests/UnusedCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ function bar(mixed $s) : string {
*/
function foo() : void {}
function bar($s) : void {}
function bar(mixed $s) : void {}
/** @psalm-suppress NoValue */
bar(foo());
Expand Down

0 comments on commit 5470724

Please sign in to comment.