- Output for 5.3.0 - 5.3.20, 5.4.0 - 5.4.10
- Parse error: syntax error, unexpected '{' in 8QNRB on line 12
Process exited with code 255.
<?php
class XXX {
function yo(){
echo 'yo!';
}
}
class Test {
protected $class = 'XXX';
function __construct(){
$xxx = new {$this->class}();
$xxx->yo();
}
}
$test = new Test();