mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
11 lines
178 B
Markdown
11 lines
178 B
Markdown
# InvalidPassByReference
|
|
|
|
Emitted when passing a non-variable to a function that expects a by-ref variable
|
|
|
|
```php
|
|
<?php
|
|
|
|
function foo(array &$arr) : void {}
|
|
foo([0, 1, 2]);
|
|
```
|