Support » Plugin: MakeCommerce for WooCommerce » Returning bool from usort is deprecated

  • Resolved zanozik

    (@zanozik)


    Hi again,

    You also might want to look at

    shipping/shipping.php:679

    
                    usort( $machines, function( $a, $b ) { 
    			if ( $a['city'] === $b['city'] ) {
    				
    				return $a['name'] > $b['name'];
    			}
    
    			return $a['city'] > $b['city'];
    		});
    

    Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero

    You have similar callback fixed here: shipping/method/parcelmachine/parcelmachine.php:432

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Returning bool from usort is deprecated’ is closed to new replies.