Skip to content

chore: update dependencies and drop friendsofsymfony/http-cache 2.x - #13

Merged
Jean-Beru merged 5 commits into
mainfrom
chore/update-deps-and-config
Oct 15, 2026
Merged

Jean-Beru merged 5 commits into
mainfrom
chore/update-deps-and-config

Conversation

@Jean-Beru

@Jean-Beru Jean-Beru commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Why

  • The code uses classes from async-aws/core and symfony/options-resolver, but composer.json does not declare these packages. They come only as transitive dependencies.
  • friendsofsymfony/http-cache 2.x receives no updates since 2.16.2 (August 2024). Only 3.x is maintained.
  • The dev dependencies are old (PHPStan 1, PHPUnit 10.0).
  • The PHPUnit configuration contains obsolete symfony/phpunit-bridge settings and a PHPUnit 9.3 schema.
  • The package archive contains dev files (.php-cs-fixer.dist.php, .github).

What

  • Declare async-aws/core (HttpException, SimpleMockedResponse) and symfony/options-resolver (OptionsResolver) in require.
  • Drop support for friendsofsymfony/http-cache 2.x: require ^3.0.
  • Align symfony/options-resolver with friendsofsymfony/http-cache 3.x: ^6.4 || ^7.0 || ^8.0.
  • Add UPGRADE-1.3.md to document the removed versions.
  • Disable the php-http/discovery Composer plugin. The project does not need a PSR-18 client, so the plugin must not install one.
  • Update php-cs-fixer, phpunit (10.5 to 13, one major version for each supported PHP version) and phpstan (2.x).
  • Use the local PHPUnit schema and remove the phpunit-bridge settings.
  • Add a missing expects($this->once()) in the tests.
  • Exclude .php-cs-fixer.dist.php and .github from the package archive.

Upgrade

Users on friendsofsymfony/http-cache 2.x stay on version 1.2 of this package. See UPGRADE-1.3.md.

@Jean-Beru Jean-Beru changed the title chore: update dependencies and project configuration chore: update dependencies and drop friendsofsymfony/http-cache 2.x Oct 15, 2026
@Jean-Beru
Jean-Beru force-pushed the chore/update-deps-and-config branch from b936983 to 3116885 Compare October 15, 2026 10:47
@Jean-Beru
Jean-Beru merged commit 3ce8ce0 into main Oct 15, 2026
13 checks passed
@Jean-Beru
Jean-Beru deleted the chore/update-deps-and-config branch October 15, 2026 10:55
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