diff --git a/classes/WooCommerce.php b/classes/WooCommerce.php index efb20b3fad..ed1a156499 100644 --- a/classes/WooCommerce.php +++ b/classes/WooCommerce.php @@ -62,7 +62,7 @@ public function __construct() { /** * After place new order */ - add_action( 'woocommerce_new_order', array( $this, 'course_placing_order_from_admin' ), 10, 3 ); + add_action( 'woocommerce_new_order', array( $this, 'course_placing_order_from_admin' ), 10, 1 ); add_action( 'woocommerce_new_order_item', array( $this, 'course_placing_order_from_customer' ), 10, 3 ); /** diff --git a/ecommerce/PaymentGateways/Paypal/src/Exceptions/FilesystemException.php b/ecommerce/PaymentGateways/Paypal/src/Exceptions/FilesystemException.php index 9134da1e84..6b909b20a3 100644 --- a/ecommerce/PaymentGateways/Paypal/src/Exceptions/FilesystemException.php +++ b/ecommerce/PaymentGateways/Paypal/src/Exceptions/FilesystemException.php @@ -7,7 +7,7 @@ class FilesystemException extends RuntimeException implements Throwable { - public function __construct($message = "", $code = 0, Throwable $previous = null) + public function __construct($message = "", $code = 0, ?Throwable $previous = null) { parent::__construct( $message,