Fixing PHP 5.5 compilation