Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 191 Bytes

PossiblyInvalidArgument.md

File metadata and controls

14 lines (11 loc) · 191 Bytes

PossiblyInvalidArgument

Emitted when

<?php

/** @return int|stdClass */
function foo() {
    return rand(0, 1) ? 5 : new stdClass;
}
function bar(int $i) : void {}
bar(foo());