Fixing strict errors in PHP 5.4