Fixed declaration compatible with the interface

not a BOOM PR, but simple fixes made on the train from phpday :)