From f1399c9d777031c305bf9b8c20a846da205e8067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9stor=20Soriano?= Date: Wed, 10 Jul 2024 14:10:03 +0200 Subject: [PATCH] Fix the namespace of the RestApiControllerBase class (#49333) * Fix the namespace of the RestApiControllerBase class * Add changelog file --- plugins/woocommerce/changelog/pr-49333 | 4 ++++ .../ReceiptRendering/ReceiptRenderingRestController.php | 2 +- plugins/woocommerce/src/Internal/RestApiControllerBase.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 plugins/woocommerce/changelog/pr-49333 diff --git a/plugins/woocommerce/changelog/pr-49333 b/plugins/woocommerce/changelog/pr-49333 new file mode 100644 index 00000000000..7eabab1e53a --- /dev/null +++ b/plugins/woocommerce/changelog/pr-49333 @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix the namespace of the RestApiControllerBase class diff --git a/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingRestController.php b/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingRestController.php index 3674da31e7b..d871559c360 100644 --- a/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingRestController.php +++ b/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingRestController.php @@ -6,8 +6,8 @@ use Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine; use \WP_REST_Server; use \WP_REST_Request; use \WP_Error; -use \InvalidArgumentException; use Automattic\WooCommerce\Internal\Traits\AccessiblePrivateMethods; +use Automattic\WooCommerce\Internal\RestApiControllerBase; /** * Controller for the REST endpoints associated to the receipt rendering engine. diff --git a/plugins/woocommerce/src/Internal/RestApiControllerBase.php b/plugins/woocommerce/src/Internal/RestApiControllerBase.php index a01fe7a682a..ca7921fcdf9 100644 --- a/plugins/woocommerce/src/Internal/RestApiControllerBase.php +++ b/plugins/woocommerce/src/Internal/RestApiControllerBase.php @@ -1,6 +1,6 @@