Files
piratepoet/tasks/phpstan/bootstrap.php
Pavel Dohnal 46a0b7501b Update phpstan to level 5
[MAILPOET-1969]
2019-04-10 09:55:13 -04:00

27 lines
523 B
PHP

<?php
define('ABSPATH', getenv('WP_ROOT') . '/');
require_once ABSPATH . 'wp-load.php';
require_once ABSPATH . 'wp-admin/includes/admin.php';
if(!class_exists('\MailPoet\Premium\DI\ContainerConfigurator')) {
require_once './PremiumContainerConfigurator.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 '';
}