Update Extension.php #241
Annotations
10 errors
Run PHPStan:
src/Extension.php#L320
Cannot call method get_meta() on WC_Order|WC_Order_Refund|true.
|
Run PHPStan:
src/Extension.php#L320
Cannot cast mixed to int.
|
Run PHPStan:
src/Extension.php#L404
Parameter #2 ...$values of function sprintf expects bool|float|int|string|null, mixed given.
|
Run PHPStan:
src/Extension.php#L436
Cannot call method get_type() on WC_Order|WC_Order_Refund|true.
|
Run PHPStan:
src/Extension.php#L452
Parameter #1 $order of static method Pronamic\WordPress\Pay\Extensions\WooCommerce\WooCommerce::get_payment_method_title() expects WC_Order, WC_Order|WC_Order_Refund|true given.
|
Run PHPStan:
src/Extension.php#L462
Parameter #1 $text of function esc_html expects string, int|null given.
|
Run PHPStan:
src/Extension.php#L463
Parameter #1 $text of function esc_html expects string, mixed given.
|
Run PHPStan:
src/Extension.php#L464
Parameter #1 $text of function esc_html expects string, string|null given.
|
Run PHPStan:
src/Extension.php#L487
Cannot call method needs_payment() on WC_Order|WC_Order_Refund|true.
|
Run PHPStan:
src/Extension.php#L490
Cannot call method get_status() on WC_Order|WC_Order_Refund|true.
|
Loading