1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 10:17:33 +01:00
psalm/docs/running_psalm/issues/InvalidPassByReference.md
2020-03-20 19:13:56 -04:00

178 B

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]);