Fix for STRICT warnings in PHP 5.4

Resubmitting this for a minimal diff instead of breaking all the line endings.

Received several STRICT warnings using PHP 5.4 with this class.  I tried to keep the code logic mostly the exact same and just get the signature errors to go away.