Skip to content

Migrate to PHP 8.4 and bump dependencies - #7

Merged
piotrooo merged 2 commits into
masterfrom
migrate-php-8.4
Apr 29, 2026
Merged

Migrate to PHP 8.4 and bump dependencies#7
piotrooo merged 2 commits into
masterfrom
migrate-php-8.4

Conversation

@piotrooo

Copy link
Copy Markdown
Member

Summary

  • Bump PHP to >=8.4, Symfony to ~7.4.8 LTS, PHPUnit to ~13.1.7, phpdocumentor/reflection-docblock to ~6.0.3
  • Migrate code to Symfony 7 (Attribute\* namespaces, AttributeLoader, property access on DiscriminatorMap)
  • Adopt PHP 8.4 parens-less new chaining
  • Switch tests to PHPUnit 13 #[Test] attribute with : void returns
  • Add GitHub Actions CI on PHP 8.4

Test plan

  • vendor/bin/phpunit tests passes locally on PHP 8.4 (18/18, 0 deprecations)
  • CI green on this PR

🤖 Generated with Claude Code

piotrooo and others added 2 commits April 29, 2026 11:56
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>
@piotrooo piotrooo self-assigned this Apr 29, 2026
@piotrooo
piotrooo requested a review from bbankowski April 29, 2026 09:59
@piotrooo piotrooo added the enhancement New feature or request label Apr 29, 2026
@piotrooo
piotrooo merged commit 3c5d818 into master Apr 29, 2026
2 checks passed
@piotrooo
piotrooo deleted the migrate-php-8.4 branch April 29, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants