Commit ad761c1fafc for woocommerce

commit ad761c1fafce6ae66b2fe0fe97a1ca0ef5e644be
Author: Arshid <arshidkv12@gmail.com>
Date:   Wed Oct 14 21:02:57 2026 +0530

    Fix PHP 8.6 deprecation in WC_Data (#68676)

    * Fix PHP 8.6 deprecation in WC_Data

    * Fix PHP 8.6 deprecation in WC_Data

    * Fix PHP 8.6 deprecation in WC_Data

diff --git a/plugins/woocommerce/includes/abstracts/abstract-wc-data.php b/plugins/woocommerce/includes/abstracts/abstract-wc-data.php
index 0fcfdc8ab39..b1a9ae54d77 100644
--- a/plugins/woocommerce/includes/abstracts/abstract-wc-data.php
+++ b/plugins/woocommerce/includes/abstracts/abstract-wc-data.php
@@ -978,7 +978,7 @@ abstract class WC_Data {
 				return;
 			}

-			if ( is_a( $value, 'WC_DateTime' ) ) {
+			if ( is_a( $value, 'WC_DateTime', true ) ) {
 				$datetime = $value;
 			} elseif ( is_numeric( $value ) ) {
 				// Timestamps are handled as UTC timestamps in all cases.