Fixes deprecated call for php v5.5 compatibility [#976]