Migrate to PHP 8.4 and bump dependencies - #7
Merged
Merged
Conversation
Bumps the toolchain to PHP 8.4 with Symfony 7.4 LTS and PHPUnit 13. Adopts PHP 8.4's parens-less `new` chaining and migrates to PHPUnit's `#[Test]` attribute (drops `@test` PHPDoc support). - composer: php >=8.4; symfony/* ~7.4.8; phpunit ~13.1.7; reflection-docblock ~6.0.3; unpin letsdrink/ouzo - phpunit.xml: schema 13.1 - Symfony 7: Annotation\* -> Attribute\*; AnnotationLoader -> AttributeLoader - Symfony 7.4: DiscriminatorMap method calls -> property access - PHP 8.4: `(new Foo())->bar()` -> `new Foo()->bar()` - PHPUnit 13: `@test` -> `#[Test]` and `: void` on test methods - Fix golden file: NonBackedEnum -> BasicEnum - Add GitHub Actions CI (PHP 8.4 matrix) - Add CLAUDE.md project guidance Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CI runs `phpunit --configuration ./phpunit.xml` without a positional test path, so PHPUnit needs `<testsuites>` to discover tests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bbankowski
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
>=8.4, Symfony to~7.4.8LTS, PHPUnit to~13.1.7,phpdocumentor/reflection-docblockto~6.0.3Attribute\*namespaces,AttributeLoader, property access onDiscriminatorMap)newchaining#[Test]attribute with: voidreturnsTest plan
vendor/bin/phpunit testspasses locally on PHP 8.4 (18/18, 0 deprecations)🤖 Generated with Claude Code