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 623f57d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,11 @@ function doFoo(): void {

$link_mode = isset($shortcut_id) ? "remove" : "add";
if ($link_mode === "add") {
assertVariableCertainty(TrinaryLogic::createNo(), $shortcut_id);
assertVariableCertainty(
// should be NO, see https://github.com/phpstan/phpstan-src/pull/2710#issuecomment-1793677703
TrinaryLogic::createMaybe(),
$shortcut_id
);
} else {
assertVariableCertainty(TrinaryLogic::createYes(), $shortcut_id);
}
Expand Down

0 comments on commit 623f57d

Please sign in to comment.