1 | <?php |
||
5 | trait WaterfallTrait |
||
6 | { |
||
7 | /** |
||
8 | * Call callback one |
||
9 | * @param \Closure $fn |
||
10 | * @return \Closure |
||
11 | */ |
||
12 | private function callOnce ($fn) |
||
20 | |||
21 | /** |
||
22 | * Run tasks in series |
||
23 | * @param \Closure[] $tasks |
||
24 | * @param array $args |
||
25 | * @return void |
||
26 | */ |
||
27 | private function waterfall (array $tasks, array $args) |
||
45 | } |
It seems like you are assigning to a variable which was imported through a
use
statement which was not imported by reference.For clarity, we suggest to use a different name or import by reference depending on whether you would like to have the change visibile in outer-scope.
Change not visible in outer-scope
Change visible in outer-scope