'x' is not object

Sample code:

//...
$x = 7;
echo $x->property;              // 'x' is not object
//...

You attempted to access $x as it was object although it wasn't.