Commit ea2bf7df authored by Bastien Ho's avatar Bastien Ho :alien:
Browse files

PHP7 compliance

parent 367cc297
Pipeline #34635 passed with stages
in 2 seconds
Showing with 2 additions and 2 deletions
+2 -2
......@@ -17,7 +17,7 @@ function woocommerce_accounting_export_select_options($options, $option_name){
*
* @return string
*/
function woocommerce_accounting_format_number($number) : string{
function woocommerce_accounting_format_number($number){
global $rounding_precision;
$dec_separator = get_option('woocommerce_accounting_export_decimal_separator');
$zero_opt = get_option('woocommerce_accounting_export_zero_opt');
......@@ -37,7 +37,7 @@ function woocommerce_accounting_format_number($number) : string{
*
* @return float
*/
function woocommerce_accounting_unformat_number($string) : float{
function woocommerce_accounting_unformat_number($string){
return (float) str_replace(',', '.', $string);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment