Skip to content

Upgrade dependencies to clear all security advisories - #10

Merged
jantinnerezo merged 1 commit into
masterfrom
chore/security-upgrades
Aug 14, 2026
Merged

Upgrade dependencies to clear all security advisories#10
jantinnerezo merged 1 commit into
masterfrom
chore/security-upgrades

Conversation

@jantinnerezo

Copy link
Copy Markdown
Contributor

Summary

composer audit reported 25 advisories across 7 packages — matching the dependabot alerts on master (6 high). All transitive: guzzlehttp/guzzle + guzzlehttp/psr7 via Saloon (runtime), the rest (laravel/framework, league/commonmark, symfony/routing, symfony/http-foundation, symfony/polyfill-intl-idn) via orchestra/testbench (dev-only).

After this PR: composer audit --locked is clean.

Changes

  • Targeted composer update -W of the affected packages only (rector/phpstan/cs-fixer majors deliberately left untouched where possible).
  • testbench 9 → 10 (Laravel 11 → 12): every Laravel 11.x release is currently flagged by advisories, so testbench had to move to v10. That required widening phpunit/phpunit from ^8 || ^9 || ^10 to ^11.5 || ^12.0 (testbench 10 minimum).
  • rector/rector pinned to ~2.5.0: rector 2.6 removed the strictBooleans parameter that airlst/rector-config (dev-master) still passes to withPreparedSets(), and rector 2.4 fatals against the updated phpstan internals. 2.5 works with both. Unpin once airlst/rector-config drops strictBooleans (it's deprecated in 2.5 with a warning).
  • Rector/cs-fixer re-run on src/ with the updated toolchain (CI would auto-commit these anyway).

Test plan

  • composer audit --locked — no advisories
  • ./vendor/bin/rector — clean
  • composer cs-fixer / composer phpstan — clean
  • composer test — passing

Notes

🤖 Generated with Claude Code

composer audit reported 25 advisories across 7 packages (guzzle, psr7,
league/commonmark, laravel/framework, symfony/routing, symfony/http-foundation,
symfony/polyfill-intl-idn) — all transitive via saloon (runtime) and
orchestra/testbench (dev).

- Targeted composer update of the affected packages with dependencies
- laravel/framework 11.x is entirely flagged, so testbench moves to v10
  (Laravel 12); this required widening phpunit to ^11.5 || ^12.0
- Pin rector/rector to ~2.5.0: 2.6 removed the strictBooleans parameter that
  airlst/rector-config dev-master still passes, and 2.4 breaks against the
  updated phpstan internals
- Rector/cs-fixer re-run on src/ with the updated toolchain

composer audit --locked is now clean. rector, cs-fixer, phpstan and phpunit
all pass locally.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jantinnerezo
jantinnerezo merged commit 40efe51 into master Aug 14, 2026
5 checks passed
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