Commit e568ea50bbd for woocommerce

commit e568ea50bbdde1824f1a0bf21149c9e1f8e64bd3
Author: Brandon Kraft <public@brandonkraft.com>
Date:   Wed Aug 12 10:57:43 2026 -0500

    Remove stale PHPStan baseline entries for TransientFilesEngine (#67672)

    The two baselined argument.type errors came from glob() returning
    list<string>|false and that union reaching count() and array_slice().
    Replacing glob() with scandir() plus an explicit false check resolved both,
    so PHPStan reports the baseline patterns as unmatched and fails the run.

diff --git a/plugins/woocommerce/changelog/fix-phpstan-baseline-transient-files b/plugins/woocommerce/changelog/fix-phpstan-baseline-transient-files
new file mode 100644
index 00000000000..d8151d492e3
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-phpstan-baseline-transient-files
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Remove two stale PHPStan baseline entries for TransientFilesEngine that no longer match any reported error.
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index 63661fff008..b70a433066f 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -67788,18 +67788,6 @@ parameters:
 			count: 1
 			path: src/Internal/TransientFiles/TransientFilesEngine.php

-		-
-			message: '#^Parameter \#1 \$input of function array_slice expects array, list\<string\>\|false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/TransientFiles/TransientFilesEngine.php
-
-		-
-			message: '#^Parameter \#1 \$var of function count expects array\|Countable, list\<string\>\|false given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Internal/TransientFiles/TransientFilesEngine.php
-
 		-
 			message: '#^Parameter \#2 \$timestamp of function gmdate expects int, int\|string given\.$#'
 			identifier: argument.type