mirror of
https://github.com/danog/psalm.git
synced 2024-12-17 11:56:59 +01:00
11 lines
216 B
Markdown
11 lines
216 B
Markdown
# PossiblyNullArgument
|
||
|
||
Emitted when calling a function with a value that’s possibly null when the function does not expect it
|
||
|
||
```php
|
||
<?php
|
||
|
||
function foo(string $s) : void {}
|
||
foo(rand(0, 1) ? "hello" : null);
|
||
```
|