1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00
psalm/docs/running_psalm/issues/ParadoxicalCondition.md
Matthew Brown d450b40da8
Remove some logic that didn't need to be there (#9209)
* 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
2023-02-03 21:08:16 -05:00

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");
}
```