Coupons Controller → Import `Exception` class. (#34562)

Import `Exception` class.
This commit is contained in:
Barry Hughes 2022-09-09 14:24:13 -07:00 committed by GitHub
parent d375c3b609
commit 03b9032de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Prevent fatal error when throwing exceptions in relation to coupon usage.

View File

@ -2,6 +2,8 @@
namespace Automattic\WooCommerce\Internal\Orders;
use Exception;
/**
* Class with methods for handling order coupons.
*/