3 years ago

Trying to get property of non-object - how do I know which is the non-object?

Posted 3 years ago by canfiax

Often when having objects on the same line, and I am getting the "Trying to get property of non-object"-error I find it difficult to figure out exactly which of the variables that is not an object.

Do you have any advice on how to figure this out more efficiently than die-dumping the variables one-by-one?


Please sign in or create an account to participate in this conversation.