Coupons Controller → Import `Exception` class. (#34562)
Import `Exception` class.
This commit is contained in:
parent
d375c3b609
commit
03b9032de8
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Prevent fatal error when throwing exceptions in relation to coupon usage.
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Automattic\WooCommerce\Internal\Orders;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Class with methods for handling order coupons.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue