mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
191 B
191 B
PossiblyInvalidArgument
Emitted when
<?php
/** @return int|stdClass */
function foo() {
return rand(0, 1) ? 5 : new stdClass;
}
function bar(int $i) : void {}
bar(foo());