Skip to content

Upgrade to htaccess-api-client v3 and modernise tooling#64

Merged
jdrieghe merged 7 commits intomainfrom
upgrade-dependencies
Mar 20, 2026
Merged

Upgrade to htaccess-api-client v3 and modernise tooling#64
jdrieghe merged 7 commits intomainfrom
upgrade-dependencies

Conversation

@jdrieghe
Copy link
Copy Markdown
Member

@jdrieghe jdrieghe commented Mar 20, 2026

Summary

  • Integrates htaccess-api-client v3, which moves all classes to the Madewithlove\HtaccessApiClient namespace and requires PHP 8.4
  • Bumps PHPUnit to v13 and PHPStan to v2
  • Narrows symfony/console and symfony/yaml to ^7.0 || ^8.0

Commits

Structured for commit-by-commit review:

  1. composer.json — version constraint bumps
  2. Namespace migration — update use imports in HtaccessCommand and TableRenderer to Madewithlove\HtaccessApiClient\*
  3. PHPUnit 13 — replace @test annotations with #[Test] attributes; update phpunit.xml.dist coverage config

Test plan

  • ./vendor/bin/phpunit passes (16 tests, 26 assertions)

- htaccess-api-client ^2.3 → ^3.0
- php ^8.0 → ^8.4 (required by v3)
- symfony/console and symfony/yaml: drop pre-7 constraints
- phpunit/phpunit ^9.5 → ^13.0
- phpstan/phpstan ^1.0 → ^2.0
v3 of htaccess-api-client moved all classes from Madewithlove\ to
Madewithlove\HtaccessApiClient\. Add explicit imports in HtaccessCommand
and TableRenderer.
- Replace @test docblock annotations with #[Test] attributes (removed in PHPUnit 11)
- Replace deprecated <filter><whitelist> with <source><include> in phpunit.xml.dist
- Add HtaccessClient import from new namespace in both test classes
Drop 8.0/8.1 matrix entries and the --ignore-platform-req workaround
that was needed for them. Add explicit PHP setup to the run job.
Fixes PHPStan errors: untyped static property and mixed passed to
parent::__construct(). The attribute is the idiomatic Symfony approach
since Console 5.3.
@jdrieghe jdrieghe self-assigned this Mar 20, 2026
@jdrieghe jdrieghe marked this pull request as ready for review March 20, 2026 08:28
@jdrieghe jdrieghe requested a review from WouterSioen March 20, 2026 08:28
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.01%. Comparing base (2a67755) to head (71741f4).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #64   +/-   ##
=========================================
  Coverage     97.01%   97.01%           
  Complexity       38       38           
=========================================
  Files             2        2           
  Lines           134      134           
=========================================
  Hits            130      130           
  Misses            4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@WouterSioen WouterSioen left a comment

Choose a reason for hiding this comment

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

:shipit:

@jdrieghe jdrieghe merged commit afe80d9 into main Mar 20, 2026
9 checks passed
@jdrieghe jdrieghe deleted the upgrade-dependencies branch March 20, 2026 09:46
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.

2 participants