Fix incorrect object declaration, PHP 5.4.x compatibility
Merge pull request #2286 from julceslauhub/master

Fix incorrect object declaration, PHP 5.4.x compatibility