1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Revert code back to how it was

This commit is contained in:
Brown 2019-12-13 17:52:37 -05:00
parent 2469f04715
commit e1af0e01ee

View File

@ -186,7 +186,7 @@ class TypeAlgebraTest extends \Psalm\Tests\TestCase
if ($a) {
// do nothing here
} elseif ($b) {
$a = "";
$a = null;
} else {
return "bad";
}
@ -1141,21 +1141,6 @@ class TypeAlgebraTest extends \Psalm\Tests\TestCase
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'
],
];
}
}