mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
ea52b9d23a
While I was searching for some code, ran across these.
14 lines
198 B
Markdown
14 lines
198 B
Markdown
# FalseOperand
|
|
|
|
Emitted when using `false` as part of an operation (e.g. `+`, `.`, `^` etc.)
|
|
|
|
```php
|
|
<?php
|
|
|
|
echo 5 . false;
|
|
```
|
|
|
|
## Why this is bad
|
|
|
|
`false` does not make sense in these operations
|