Fixed method declaration warning for PHP 5.4