Fix compatibility for PHP 5.5