- Output for 5.3.0 - 5.3.26, 5.4.0 - 5.4.17
- Parse error: syntax error, unexpected '&' in /in/VPYNX on line 9
Process exited with code 255.
<?php
class Kitchen
{
private $yummy = 'cake';
}
$sweetsThief = function (Kitchen $kitchen) {
return & $kitchen->yummy;
};
$kitchen = new Kitchen();
$sweetsThief = Closure::bind($sweetsThief, null, $kitchen);
var_dump($sweetsThief($kitchen));