Bump phpunit/phpunit from 7.5.20 to 8.5.52 - #640
Conversation
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 7.5.20 to 8.5.52. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/8.5.52/ChangeLog-8.5.md) - [Commits](sebastianbergmann/phpunit@7.5.20...8.5.52) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-version: 8.5.52 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Stale security audit ignore
- Removed the PKSA-z3gr-8qht-p93v composer audit ignore now that the lock pins patched phpunit/phpunit 8.5.52, so composer audit can warn if a vulnerable 8.x resolution returns later.
Or push these changes by commenting:
@cursor push 2615dcccf3
Preview (2615dcccf3)
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -30,11 +30,6 @@
"platform" : {
"php" : "7.4"
},
- "audit" : {
- "ignore" : {
- "PKSA-z3gr-8qht-p93v" : "phpunit/phpunit is require-dev only; advisory is PHPT coverage deserialization (CVE-2026-24765). No patched 7.x release exists; revisit when upgrading PHPUnit."
- }
- },
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}You can send follow-ups to the cloud agent here.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6f329f4. Configure here.
| "wp-coding-standards/wpcs": "^3.1", | ||
| "lox/xhprof" : "dev-master", | ||
| "phpunit/phpunit": "^7", | ||
| "phpunit/phpunit": "^8", |
There was a problem hiding this comment.
Stale security audit ignore
Medium Severity
config.audit.ignore still suppresses PKSA-z3gr-8qht-p93v (CVE-2026-24765) even though the lock now pins patched phpunit/phpunit 8.5.52. The ignore note itself said to revisit on upgrade, so composer audit can no longer warn if a vulnerable 8.x resolution returns later.
Reviewed by Cursor Bugbot for commit 6f329f4. Configure here.



Bumps phpunit/phpunit from 7.5.20 to 8.5.52.
Release notes
Sourced from phpunit/phpunit's releases.
... (truncated)
Changelog
Sourced from phpunit/phpunit's changelog.
... (truncated)
Commits
1015741Prepare release3141742Do not run PHPT test when its temporary file for code coverage information ex...0b3170aWe do not need to unserialize() objects here261086aExtract methodfdd6b86Fix CS/WS issueb4f79fcFixe4eee30Prepare release22b2b0bUpdate dependencies0b19865Update tools04ecd72Update toolsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
Note
Low Risk
Changes are limited to require-dev and lockfile; no runtime plugin code is touched, though CI on PHP 7.4 will run PHPUnit 8 instead of 7 until Travis/docs are aligned.
Overview
Upgrades PHPUnit from ^7 to ^8 in
require-devand refreshescomposer.lockso the resolved test stack is 8.5.52 (from 7.5.20).The lockfile shift drops PHPUnit 7–era transitive packages (e.g. phpspec/prophecy, phpDocumentor reflection libs) and bumps PHPUnit 8 companions such as phar-io/manifest, php-code-coverage, sebastian/global-state, and adds sebastian/type. Production
requiredependencies are unchanged; only dev/test tooling is affected.The existing Composer audit ignore for PHPUnit still describes the old 7.x CVE context and may warrant a follow-up now that 8.x is in use.
Reviewed by Cursor Bugbot for commit 6f329f4. Bugbot is set up for automated code reviews on this repo. Configure here.