Commit 97193bc9f2 for woocommerce
commit 97193bc9f27d133338b59a6de38618bc9eaf6435
Author: Brandon Kraft <public@brandonkraft.com>
Date: Thu Feb 19 17:38:19 2026 -0600
Remove stale PHPStan baseline entries for OrdersTableDataStore (#63376)
The is_string() guard added in #63295 resolved two previously
baselined errors (set_order_prop array type and sprintf array type).
Remove the now-unmatched baseline entries so CI passes.
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index 0918415e3a..96e23fa42a 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -64302,24 +64302,12 @@ parameters:
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Parameter \#2 \$prop_name of method Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\:\:set_order_prop\(\) expects string, array given\.$#'
- identifier: argument.type
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Parameter \#2 \$property_name of function property_exists expects string, array\|string given\.$#'
identifier: argument.type
count: 1
path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
- -
- message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, array given\.$#'
- identifier: argument.type
- count: 1
- path: src/Internal/DataStores/Orders/OrdersTableDataStore.php
-
-
message: '#^Parameter \#3 \$default_value of static method Automattic\\WooCommerce\\Utilities\\ArrayUtil\:\:get_value_or_default\(\) expects null, string given\.$#'
identifier: argument.type