Skip to content

chore(deps): drop roave/security-advisories from dev dependencies - #115

Merged
brd6 merged 1 commit into
mainfrom
chore/drop-roave-security-advisories
Oct 23, 2026
Merged

brd6 merged 1 commit into
mainfrom
chore/drop-roave-security-advisories

Conversation

@brd6

@brd6 brd6 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Description

Removes roave/security-advisories from require-dev in composer.json. Nothing else changes.

Motivation and context

roave/security-advisories dev-latest now declares a conflict with PHP itself (php <8.2.35|>=8.3,<8.3.36|>=8.4,<8.4.27|>=8.5,<8.5.12). Composer refuses to install the dev dependencies on any PHP release in that range, which covers every version CI runs: 8.1 for coding standards, static analysis and coverage, and 7.4, 8.0 and 8.1 in the unit test matrix.

The library still declares "php": "^7.4 || ^8" and tests those versions, so CI cannot pass while the package is required. The last green build run on main was on 2026-09-25 (release 1.12.8); the green runs on 2026-10-01 came from Dependabot. The next build run, on #114 on 2026-10-23, failed at "Install dependencies" with:

- php is present at version 8.1.34 and cannot be modified by Composer
- roave/security-advisories dev-latest conflicts with php <8.2.35|>=8.3,<8.3.36|>=8.4,<8.4.27|>=8.5,<8.5.12.

The package only guarded dev installs of this repository. A require-dev entry is never installed for projects that depend on the library, so library users are unaffected.

How has this been tested?

  • composer validate --strict reports the same single warning as on main (a description for the non-existent dev:build:clean script), and no other issue.
  • composer update --ignore-platform-req=php resolves without roave/security-advisories.
  • vendor/bin/phpunit --no-coverage on PHP 8.3: 308 tests pass, the same count as on main.
  • CI on this pull request (run 39953897192, head 874f5a2): all 21 jobs pass, including Coding standards, Static analysis and Code coverage on PHP 8.1, and Unit tests on PHP 7.4, 8.0 and 8.1 across Ubuntu, macOS and Windows with lowest and highest dependencies.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

roave/security-advisories dev-latest now conflicts with php <8.2.35, so
composer cannot install the dev dependencies on PHP 7.4, 8.0 or 8.1.
The library still supports and tests those versions, and the package
only guarded dev installs.
@brd6
brd6 marked this pull request as ready for review October 23, 2026 12:42
@brd6
brd6 merged commit 956b4e6 into main Oct 23, 2026
21 checks passed
@brd6
brd6 deleted the chore/drop-roave-security-advisories branch October 23, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant