2020-03-19 17:32:49 +01:00
|
|
|
# PossiblyInvalidArgument
|
|
|
|
|
|
|
|
Emitted when
|
|
|
|
|
|
|
|
```php
|
2020-03-21 00:13:46 +01:00
|
|
|
<?php
|
|
|
|
|
2020-03-19 17:32:49 +01:00
|
|
|
/** @return int|stdClass */
|
|
|
|
function foo() {
|
|
|
|
return rand(0, 1) ? 5 : new stdClass;
|
|
|
|
}
|
|
|
|
function bar(int $i) : void {}
|
|
|
|
bar(foo());
|
|
|
|
```
|