Commit db2c3828f38 for woocommerce
commit db2c3828f38810ab9484d32b7bec34b144a18a7d
Author: Jorge A. Torres <jorge.torres@automattic.com>
Date: Thu May 14 16:17:40 2026 +0100
Bump mockery/mockery to ^1.6.10 to silence PHP 8.4 deprecations (#64873)
Mockery 1.6.6 emits "implicitly nullable parameter" deprecation
notices on PHP 8.4 from Mockery::formatArgs() and ::formatObjects().
Because Mockery registers Mockery.php and helpers.php under Composer's
`files` autoload, these notices fire on every request that loads
vendor/autoload.php — not just during test runs. They are emitted at
compile time, so they only appear once per request when opcache is
enabled but flood the debug log when opcache is disabled.
Mockery 1.6.10 switches the affected signatures to explicit `?array`,
which removes the deprecations. ^1.6.10 resolves to 1.6.12 today.
diff --git a/plugins/woocommerce/changelog/fix-php-warnings-debug-log-mockery b/plugins/woocommerce/changelog/fix-php-warnings-debug-log-mockery
new file mode 100644
index 00000000000..48f562f6534
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-php-warnings-debug-log-mockery
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Bump mockery/mockery dev dependency to ^1.6.10 to silence PHP 8.4 implicit-nullable deprecation warnings emitted on every request when opcache is disabled.
diff --git a/plugins/woocommerce/composer.json b/plugins/woocommerce/composer.json
index c4f406e153a..d299ff3ae8b 100644
--- a/plugins/woocommerce/composer.json
+++ b/plugins/woocommerce/composer.json
@@ -64,7 +64,7 @@
"bamarni/composer-bin-plugin": "^1.4",
"dms/phpunit-arraysubset-asserts": "^0.4.0",
"johnkary/phpunit-speedtrap": "*",
- "mockery/mockery": "1.6.6",
+ "mockery/mockery": "^1.6.10",
"php-stubs/wordpress-stubs": "^6.8",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^9.6",
diff --git a/plugins/woocommerce/composer.lock b/plugins/woocommerce/composer.lock
index c1a08108c72..e57a79d4489 100644
--- a/plugins/woocommerce/composer.lock
+++ b/plugins/woocommerce/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "c50934dcb05857900ec57b146a3aefef",
+ "content-hash": "37bed2e19d8b44bc71451de7683919df",
"packages": [
{
"name": "automattic/block-delimiter",
@@ -2106,16 +2106,16 @@
},
{
"name": "mockery/mockery",
- "version": "1.6.6",
+ "version": "1.6.12",
"source": {
"type": "git",
"url": "https://github.com/mockery/mockery.git",
- "reference": "b8e0bb7d8c604046539c1115994632c74dcb361e"
+ "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/mockery/mockery/zipball/b8e0bb7d8c604046539c1115994632c74dcb361e",
- "reference": "b8e0bb7d8c604046539c1115994632c74dcb361e",
+ "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699",
+ "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699",
"shasum": ""
},
"require": {
@@ -2127,10 +2127,8 @@
"phpunit/phpunit": "<8.0"
},
"require-dev": {
- "phpunit/phpunit": "^8.5 || ^9.6.10",
- "psalm/plugin-phpunit": "^0.18.4",
- "symplify/easy-coding-standard": "^11.5.0",
- "vimeo/psalm": "^4.30"
+ "phpunit/phpunit": "^8.5 || ^9.6.17",
+ "symplify/easy-coding-standard": "^12.1.14"
},
"type": "library",
"autoload": {
@@ -2187,7 +2185,7 @@
"security": "https://github.com/mockery/mockery/security/advisories",
"source": "https://github.com/mockery/mockery"
},
- "time": "2023-08-09T00:03:52+00:00"
+ "time": "2024-05-16T03:13:13+00:00"
},
{
"name": "myclabs/deep-copy",
@@ -5596,5 +5594,5 @@
"platform-overrides": {
"php": "7.4"
},
- "plugin-api-version": "2.9.0"
+ "plugin-api-version": "2.6.0"
}