1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
psalm/docs/running_psalm/issues/InvalidLiteralArgument.md

12 lines
190 B
Markdown
Raw Normal View History

# InvalidLiteralArgument
Emitted when a scalar value is passed to a method that expected another scalar type
```php
<?php
function foo(string $s) : void {
echo strpos(".", $s);
}
```