Skip to content

Commit

Permalink
relax test
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 5, 2023
1 parent 0aac228 commit 8005394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/PHPStan/Analyser/data/bug-10088.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ function doFoo(): void {

$link_mode = isset($shortcut_id) ? "remove" : "add";
if ($link_mode === "add") {
assertVariableCertainty(TrinaryLogic::createNo(), $shortcut_id);
assertVariableCertainty(
TrinaryLogic::createMaybe(), // should be NO
$shortcut_id
);
} else {
assertVariableCertainty(TrinaryLogic::createYes(), $shortcut_id);
}
Expand Down

0 comments on commit 8005394

Please sign in to comment.