Commit a1043c0ece0 for woocommerce

commit a1043c0ece046bb046a6e5ff2b54a91a74faf184
Author: Luigi Teschio <gigitux@gmail.com>
Date:   Tue Aug 18 11:23:52 2026 +0200

    Fix PHPCS custom sniff path resolution (#67776)

    * Fix PHPCS custom sniff path resolution

    * Add changelog entry for PHPCS sniff path fix

diff --git a/plugins/woocommerce/changelog/fix-phpcs-relative-sniff-path b/plugins/woocommerce/changelog/fix-phpcs-relative-sniff-path
new file mode 100644
index 00000000000..e15f57a53a5
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-phpcs-relative-sniff-path
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Resolve custom PHPCS sniff paths relative to the WooCommerce ruleset.
diff --git a/plugins/woocommerce/phpcs.xml b/plugins/woocommerce/phpcs.xml
index 02ce7ddb18c..0df2e8a0b97 100644
--- a/plugins/woocommerce/phpcs.xml
+++ b/plugins/woocommerce/phpcs.xml
@@ -50,7 +50,7 @@

 	<!-- Local sniff: flag `%i` SQL identifier placeholders in wpdb::prepare() that aren't guarded by
 	     wpdb::has_cap( 'identifier_placeholders' ). Trusted identifiers should be interpolated directly. -->
-	<rule ref="tests/Tools/phpcs/WooCommerceInternal/Sniffs/DB/IdentifierPlaceholderSniff.php">
+	<rule ref="./tests/Tools/phpcs/WooCommerceInternal/Sniffs/DB/IdentifierPlaceholderSniff.php">
 		<include-pattern>src/</include-pattern>
 		<include-pattern>includes/</include-pattern>
     </rule>