Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 243 Bytes

InvalidScalarArgument.md

File metadata and controls

14 lines (11 loc) · 243 Bytes

InvalidScalarArgument

Emitted when a scalar value is passed to a method that expected another scalar type

<?php

function foo(int $i) : void {}
function bar(string $s) : void {
    if (is_numeric($s)) {
        foo($s);
    }
}