Fix PHPStan warnings
This commit is contained in:
committed by
M. Shull
parent
5c2b34e9da
commit
6f85c27d4f
@ -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 '';
|
||||
}
|
Reference in New Issue
Block a user