Reputation: 4593
I would like to get rid of "Trying to get property of non-object" warnings, but couldn't figure out the correct syntax for checking the existance of properties in my case.
$this->nonce = $syncbod->Status->Chal->Meta->NextNonce;
Trying to call
property_exists($syncbod, "Status->Chal")
returns always false. What would be the correct way to check if Chal
exists?
Upvotes: 6
Views: 2962