How can I use __get() to return null in multilevel object property accessing the case like this below?
For instance, this is my classes,
class property
You can can return new property instead of null
public function __get($name) { return (isset($this->$name)) ? $this->$name : new property(); }