| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | * Register a custom metabox to display metadata for the current order. |
| 29 | 29 | * |
| 30 | 30 | * This metabox is only register if the current order has been paid via PayPlug. |
| 31 | 31 | */ |
| 32 | - public function register_payplug_metabox() | |
| 32 | + public function register_payplug_metabox(): void | |
| 33 | 33 | { |
| 34 | 34 | global $post; |
| 35 | 35 | |
| 36 | 36 | $screen = class_exists('\Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController') && wc_get_container()->get(CustomOrdersTableController::class)->custom_orders_table_usage_is_enabled() |
| @@ -50,9 +50,9 @@ | ||
| 50 | 50 | * Render the metabox content. |
| 51 | 51 | * |
| 52 | 52 | * @param WP_Post $post |
| 53 | 53 | */ |
| 54 | - public function render($post) | |
| 54 | + public function render($post): void | |
| 55 | 55 | { |
| 56 | 56 | $order = ($post instanceof WP_Post) ? wc_get_order($post->ID) : $post; |
| 57 | 57 | |
| 58 | 58 | if (false === $order) { |