Commit fc2d5a91f7 for woocommerce
commit fc2d5a91f7a0e8260967c374ab5c32fc06eaa7bb
Author: Brandon Kraft <public@brandonkraft.com>
Date: Thu Feb 5 07:59:45 2026 -0600
Fix PHPStan baseline after email tracker endpoint removal (#63134)
Follow-up to #63071 which removed the orphaned email tracker REST endpoint.
The baseline contained entries that no longer match:
- Removed the get_name() error entry (method call no longer exists)
- Updated get_param() count from 15 to 13 (two calls were removed)
diff --git a/plugins/woocommerce/changelog/fix-phpstan-baseline-notes-api b/plugins/woocommerce/changelog/fix-phpstan-baseline-notes-api
new file mode 100644
index 0000000000..1256a16387
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-phpstan-baseline-notes-api
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Fix PHPStan baseline after email tracker endpoint removal
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index 52851381f9..16e3a11cdd 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -44712,13 +44712,7 @@ parameters:
-
message: '#^Call to method get_param\(\) on an unknown class Automattic\\WooCommerce\\Admin\\API\\WP_REST_Request\.$#'
identifier: class.notFound
- count: 15
- path: src/Admin/API/Notes.php
-
- -
- message: '#^Cannot call method get_name\(\) on Automattic\\WooCommerce\\Admin\\Notes\\Note\|true\.$#'
- identifier: method.nonObject
- count: 1
+ count: 13
path: src/Admin/API/Notes.php
-