@@ -288,7 +288,7 @@ protected function process_order_transaction_held( \WC_Order $order, FrameworkBa
288288 * @param string $message failure message
289289 * @param FrameworkBase\SV_WC_Payment_Gateway_API_Response|null $response response object
290290 */
291- protected function process_order_transaction_failed ( \WC_Order $ order , $ message = '' , FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
291+ protected function process_order_transaction_failed ( \WC_Order $ order , $ message = '' , ? FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
292292
293293 $ this ->mark_order_as_failed ( $ order , $ message , $ response );
294294 }
@@ -305,7 +305,7 @@ protected function process_order_transaction_failed( \WC_Order $order, $message
305305 * @param \WC_Order $order order object
306306 * @param FrameworkBase\SV_WC_Payment_Gateway_API_Customer_Response|FrameworkBase\SV_WC_Payment_Gateway_API_Response|null $response API response object
307307 */
308- public function mark_order_as_paid ( \WC_Order $ order , FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
308+ public function mark_order_as_paid ( \WC_Order $ order , ? FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
309309
310310 $ this ->get_gateway ()->add_transaction_data ( $ order , $ response );
311311
@@ -343,7 +343,7 @@ public function mark_order_as_paid( \WC_Order $order, FrameworkBase\SV_WC_Paymen
343343 * @param string $message message for the order note
344344 * @param FrameworkBase\SV_WC_Payment_Gateway_API_Response|null $response API response object
345345 */
346- public function mark_order_as_approved ( \WC_Order $ order , $ message = '' , FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
346+ public function mark_order_as_approved ( \WC_Order $ order , $ message = '' , ? FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
347347
348348 $ order ->add_order_note ( $ message );
349349 }
@@ -360,7 +360,7 @@ public function mark_order_as_approved( \WC_Order $order, $message = '', Framewo
360360 * @param string $message order note message
361361 * @param FrameworkBase\SV_WC_Payment_Gateway_API_Response|null $response
362362 */
363- public function mark_order_as_held ( \WC_Order $ order , $ message = '' , FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
363+ public function mark_order_as_held ( \WC_Order $ order , $ message = '' , ? FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
364364
365365 /* translators: Example: "Authorize.Net Transaction Held for Review". Placeholder: %s - Payment gateway title */
366366 $ order_note = sprintf ( __ ( '%s Transaction Held for Review ' , 'woocommerce-plugin-framework ' ), $ this ->get_gateway ()->get_method_title () );
@@ -390,7 +390,7 @@ public function mark_order_as_held( \WC_Order $order, $message = '', FrameworkBa
390390 *
391391 * @return string
392392 */
393- public function get_held_order_status ( \WC_Order $ order , $ response = null ) {
393+ public function get_held_order_status ( \WC_Order $ order , ? FrameworkBase \ SV_WC_Payment_Gateway_API_Response $ response = null ) {
394394
395395 /**
396396 * Held Order Status Filter.
@@ -431,7 +431,7 @@ public function get_held_order_status( \WC_Order $order, $response = null ) {
431431 * @param string $message order note message
432432 * @param FrameworkBase\SV_WC_Payment_Gateway_API_Response|null $response
433433 */
434- public function mark_order_as_failed ( \WC_Order $ order , $ message = '' , FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
434+ public function mark_order_as_failed ( \WC_Order $ order , $ message = '' , ? FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
435435
436436 /* translators: Placeholders: %s - payment gateway title */
437437 $ order_note = sprintf ( esc_html__ ( '%s Payment Failed ' , 'woocommerce-plugin-framework ' ), $ this ->get_gateway ()->get_method_title () );
@@ -458,7 +458,7 @@ public function mark_order_as_failed( \WC_Order $order, $message = '', Framework
458458 * @param string $message order note message
459459 * @param FrameworkBase\SV_WC_Payment_Gateway_API_Response|null $response
460460 */
461- public function mark_order_as_cancelled ( \WC_Order $ order , $ message , FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
461+ public function mark_order_as_cancelled ( \WC_Order $ order , $ message , ? FrameworkBase \SV_WC_Payment_Gateway_API_Response $ response = null ) {
462462
463463 /* translators: Placeholders: %s - payment gateway title */
464464 $ order_note = sprintf ( __ ( '%s Transaction Cancelled ' , 'woocommerce-plugin-framework ' ), $ this ->get_gateway ()->get_method_title () );
0 commit comments