mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 08:49:52 +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());