mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 02:27:59 +01:00
10 lines
178 B
Markdown
10 lines
178 B
Markdown
|
# PossiblyNullOperand
|
||
|
|
||
|
Emitted when using a possibly `null` value as part of an operation (e.g. `+`, `.`, `^` etc.)
|
||
|
|
||
|
```php
|
||
|
function foo(?int $a) : void {
|
||
|
echo $a + 5;
|
||
|
}
|
||
|
```
|