mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
d450b40da8
* Remove check to see what breaks * Simplify following logic * Add tests from @kkmuffme‘s branch * Reduce scope of fix * Clean up logic a little * Add failing test * Improvements * Fix for non-Paradoxical Condition result
262 B
262 B
ParadoxicalCondition
Emitted when a paradox is encountered in your programs logic that could not be caught by RedundantCondition
<?php
function foo(string $input) : string {
return $input === "a" ? "bar" : ($input === "a" ? "foo" : "b");
}