Fix 5.4 signature problem

In PHP 5.4, the methods of all derived classes must have the same signature as the base.