Skip to content

Commit

Permalink
adjust expectation per discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 10, 2023
1 parent 93555fd commit 2b207f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/data/falsy-isset.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ public function nestedOptionalNullableFetch(?string $nullableString): void
assertType("array{bar: array{foo: string}}", $a);
} else {
assertVariableCertainty(TrinaryLogic::createYes(), $a);
assertType("array{}|array{bar: array{foo: null}}", $a);
assertType("array{bar: array{foo: null}}", $a);
}

assertVariableCertainty(TrinaryLogic::createYes(), $a);
assertType("array{}|array{bar: array{foo: string|null}}", $a);
assertType("array{bar: array{foo: null}}|array{bar: array{foo: string}}", $a);
}

}
Expand Down

0 comments on commit 2b207f1

Please sign in to comment.