1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/docs/running_psalm/issues/InvalidScalarArgument.md
2020-03-20 19:13:56 -04:00

243 B

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);
    }
}