- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected 'E_USER_NOTICE' (T_STRING), expecting ',' or ')' in /in/VvTj4 on line 13
Process exited with code 255.
<?php
class Test {
public function __get( $property ) {
if ( 'bla' === $property ) {
echo 'Initializing Text->bla' . PHP_EOL;
$this->bla = 'Value';
return $this->bla;
}
trigger_error(
'Undefined property via __get(): ' . $property
E_USER_NOTICE);
return null;
}
}
$test = new Test();
echo $test->bla . PHP_EOL;
echo $test->bla . PHP_EOL;
echo $test->bla . PHP_EOL;
echo $test->kaka . PHP_EOL;
echo $test->bla . PHP_EOL;