mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +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
12 lines
262 B
Markdown
12 lines
262 B
Markdown
# ParadoxicalCondition
|
|
|
|
Emitted when a paradox is encountered in your programs logic that could not be caught by `RedundantCondition`
|
|
|
|
```php
|
|
<?php
|
|
|
|
function foo(string $input) : string {
|
|
return $input === "a" ? "bar" : ($input === "a" ? "foo" : "b");
|
|
}
|
|
```
|