Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 277 Bytes

InvalidLiteralArgument.md

File metadata and controls

11 lines (8 loc) · 277 Bytes

InvalidLiteralArgument

Emitted when a literal argument is passed where a variable is expected, such as the first argument of strpos, where an explicit $haystack is almost always unintended.

<?php

function foo(string $s) : void {
    echo strpos(".", $s);
}