Skip to content

Bump phpunit/phpunit from 7.5.20 to 8.5.52 - #640

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/phpunit/phpunit-8.5.52
Open

Bump phpunit/phpunit from 7.5.20 to 8.5.52#640
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/phpunit/phpunit-8.5.52

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 13, 2026

Copy link
Copy Markdown
Contributor

Bumps phpunit/phpunit from 7.5.20 to 8.5.52.

Release notes

Sourced from phpunit/phpunit's releases.

PHPUnit 8.5.52

Changed

  • To prevent Poisoned Pipeline Execution (PPE) attacks using prepared .coverage files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runs

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 8.5.51

Changed

  • PHPUnit\Framework\MockObject exceptions subtypes of PHPUnit\Exception

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 8.5.50

  • No changes; phpunit.phar rebuilt with PHP 8.4 to work around PHP-Scoper issue #1139

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 8.5.49

  • No changes; phpunit.phar rebuilt with updated dependencies

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

... (truncated)

Changelog

Sourced from phpunit/phpunit's changelog.

[8.5.52] - 2026-01-27

Changed

  • To prevent Poisoned Pipeline Execution (PPE) attacks using prepared .coverage files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runs

[8.5.51] - 2026-01-24

Changed

  • PHPUnit\Framework\MockObject exceptions are now subtypes of PHPUnit\Exception

[8.5.50] - 2025-12-06

  • No changes; phpunit.phar rebuilt with PHP 8.4 to work around PHP-Scoper issue #1139

[8.5.49] - 2025-12-01

  • No changes; phpunit.phar rebuilt with updated dependencies

[8.5.48] - 2025-09-24

  • No changes; phpunit.phar rebuilt with updated dependencies

[8.5.47] - 2025-09-23

  • No changes; phpunit.phar rebuilt with updated dependencies

[8.5.46] - 2025-09-14

Changed

  • #6366: Exclude __sleep() and __wakeup() from test double code generation on PHP >= 8.5

[8.5.45] - 2025-09-11

Changed

  • Implement __serialize() in addition to __sleep() (which will be deprecated in PHP 8.5)

[8.5.44] - 2025-08-20

Changed

  • Do not configure report_memleaks setting (which will be deprecated in PHP 8.5) for PHPT processes

[8.5.43] - 2025-08-10

Changed

... (truncated)

Commits

Dependabot compatibility score

Dependabot 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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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-dev and refreshes composer.lock so 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 require dependencies 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.

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>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Aug 13, 2026
@dependabot
dependabot Bot requested a review from a team August 13, 2026 19:48
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Aug 13, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

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.

Create PR

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.

Comment thread composer.json
"wp-coding-standards/wpcs": "^3.1",
"lox/xhprof" : "dev-master",
"phpunit/phpunit": "^7",
"phpunit/phpunit": "^8",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 6f329f4. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants