- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected 'extend' (T_STRING), expecting '{' in /in/l1BDT on line 7
Process exited with code 255.
<?php
class Foo
{
private $foo =2;
};
class Proxy extend Foo {
public function getFoo() {
$getter = function(){return $this->foo};
return \Closure::bind($getter, $this, 'Foo');
}
};
$hydrated = new Proxy();
var_dump($hydrated->getFoo());