Skip to content

[IT9PE1-29241] Allow Symfony 8 - #34

Merged
fguimier merged 3 commits into
mainfrom
florian_IT9PE1-29241_symfony-8-support
Aug 25, 2026
Merged

[IT9PE1-29241] Allow Symfony 8#34
fguimier merged 3 commits into
mainfrom
florian_IT9PE1-29241_symfony-8-support

Conversation

@fguimier

Copy link
Copy Markdown
Contributor

What

  • Widen symfony/cache and the require-dev symfony/* packages to ^7.0|^8.0 (symfony/phpunit-bridge to ^7.2|^8.0).
  • Separate commit: migrate PHPUnit docblock annotations to attributes. PHPUnit 13 (resolved by the highest-deps CI run) no longer reads annotation metadata, so 11 data-provider tests silently stopped receiving arguments, and the @group dns-sensitive docblock no longer triggered the phpunit-bridge DnsMock, making MxServersResolverTest::testDns hit real DNS and fail. #[DataProvider] / #[Group] attributes restore both.

Why

Part of the Symfony 8 wave across assoconnect bundles, needed by the backend upgrade to Symfony 8.1. The CI highest/lowest dependency matrix covers both majors automatically.

Test plan

Local gate in the open-source container (PHP 8.4), with the highest resolution actually installing Symfony 8.1.5:

  • composer validate --strict
  • vendor/bin/phpcs
  • vendor/bin/phpstan ✅ no errors
  • vendor/bin/phpunit ✅ 41 tests, 44 assertions (vs 13 collected before the attribute migration)

Refs IT9PE1-29241

Shipping

Merging this PR ships nothing: it needs a semver tag / GitHub release, then a
composer require assoconnect/php-smtp-toolbox:^x.y bump PR in the backend. Two reviews total.

Florian Guimier and others added 3 commits August 25, 2026 15:03
Required by PHPUnit 13, which the CI resolves on highest-deps runs.
The Group attributes also restore the phpunit-bridge DnsMock wiring
that the dns-sensitive docblock group no longer triggered.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The 7.2.0 release (previous lowest) caps PHPUnit at 10.5 and its
deprecation gate exits non-zero under PHP 8.4 even in weak mode,
failing the lowest-deps CI job after all tests pass. 7.4.0 is clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@fguimier
fguimier merged commit 1cda6fe into main Aug 25, 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