I have this code on PHP 7.2.x:
class Test
{
public $prop = null;
}
$temp = new Test();
var_dump($temp->prop['fff']);
but why is not reported Warning when temp->prop['fff']
not exists?
Edit1: sorry I forget add this code here:
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1); //all errors