- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
- Parse error: syntax error, unexpected '{', expecting ')' in /in/L0KZh on line 5
Process exited with code 255.
<?php
class A {
protected $test;
function getTest() { return $this->test; }
function setTest($test { $this->test = $test; }
}
function blabla($lol) {
$lol->setTest('Cookies');
}
$B = new A;'
blabla($B);
echo $B->getTest();