Fix PHPStan warnings

This commit is contained in:
Amine Ben hammou
2019-03-27 17:26:05 +01:00
committed by M. Shull
parent 5c2b34e9da
commit 6f85c27d4f
3 changed files with 38 additions and 14 deletions

View File

@ -4,3 +4,19 @@ define('ABSPATH', getenv('WP_ROOT') . '/');
require_once ABSPATH . 'wp-load.php';
require_once ABSPATH . 'wp-admin/includes/admin.php';
function wc_get_customer_order_count(int $user_id): int {
return 0;
}
/**
* @param mixed $order
* @return mixed
*/
function wc_get_order($order = false) {
return false;
}
function wc_price(float $price, array $args = []): string {
return '';
}