2020-03-19 12:32:49 -04:00
|
|
|
# PossiblyInvalidFunctionCall
|
|
|
|
|
|
|
|
Emitted when trying to call a function on a value that may not be callable
|
|
|
|
|
|
|
|
```php
|
2020-03-20 19:13:46 -04:00
|
|
|
<?php
|
|
|
|
|
2020-03-19 12:32:49 -04:00
|
|
|
$a = rand(0, 1) ? 5 : function() : int { return 5; };
|
|
|
|
$b = $a();
|
|
|
|
```
|