mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
12 lines
190 B
Markdown
12 lines
190 B
Markdown
|
# 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);
|
||
|
}
|
||
|
```
|