mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
12 lines
162 B
Markdown
12 lines
162 B
Markdown
# PossiblyNullFunctionCall
|
|
|
|
Emitted when trying to call a function on a value that may be null
|
|
|
|
```php
|
|
<?php
|
|
|
|
function foo(?callable $a) : void {
|
|
$a();
|
|
}
|
|
```
|