mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
9 lines
171 B
Markdown
9 lines
171 B
Markdown
|
# InvalidPassByReference
|
||
|
|
||
|
Emitted when passing a non-variable to a function that expects a by-ref variable
|
||
|
|
||
|
```php
|
||
|
function foo(array &$arr) : void {}
|
||
|
foo([0, 1, 2]);
|
||
|
```
|