Skip to content
Permalink
Browse files

Revert code back to how it was

  • Loading branch information
muglug committed Dec 13, 2019
1 parent 2469f04 commit e1af0e01ee1226db5ab0d6a9d8d366c6e27a7650
Showing with 1 addition and 16 deletions.
  1. +1 −16 tests/TypeReconciliation/TypeAlgebraTest.php
@@ -186,7 +186,7 @@ function foo(string $a, string $b): string {
if ($a) {
// do nothing here
} elseif ($b) {
$a = "";
$a = null;
} else {
return "bad";
}
@@ -1141,21 +1141,6 @@ function foo(string $a, string $b): void {
echo $array["other"];',
'error_message' => 'InvalidArrayOffset',
],
'allEventualitiesMet' => [
'<?php
function resize(bool $landscape, bool $crop) : int {
if (($landscape && $crop) || (!$landscape && !$crop)) {
return 100;
}
if ((!$landscape && $crop) || ($landscape && !$crop)) {
return 50;
}
throw new \UnexpectedValueException("bad");
}',
'error_message' => 'ParadoxicalCondition'
],
];
}
}

0 comments on commit e1af0e0

Please sign in to comment.
You can’t perform that action at this time.