Bug 64744

https://bugs.php.net/bug.php?id=64744

Show the type of the non-object for more descriptive errors