- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0
- Parse error: syntax error, unexpected '$client' (T_VARIABLE) in /in/Y7vgB on line 7
Process exited with code 255.
<?php
$client = new stdClass();
$client->Get = function($path) use($client) {
echo $client->GetAccessToken();
}
$client->GetAccessToken = function() use($client) {
return 'bar';
}
$client->Get();