Skip to content

Fix Request::get() removal in Symfony 8 and add test coverage #3809

Merged
bwoebi merged 2 commits intoDataDog:masterfrom
TomBrouws:tomb/fix-symfony-8
Apr 22, 2026
Merged

Fix Request::get() removal in Symfony 8 and add test coverage #3809
bwoebi merged 2 commits intoDataDog:masterfrom
TomBrouws:tomb/fix-symfony-8

Conversation

@TomBrouws
Copy link
Copy Markdown
Contributor

@TomBrouws TomBrouws commented Apr 21, 2026

Description

Fixes #3808

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@TomBrouws TomBrouws requested review from a team as code owners April 21, 2026 17:00
@TomBrouws TomBrouws changed the title Fix Request::get() removal in Symfony 8 and add test voerage Fix Request::get() removal in Symfony 8 and add test coverage Apr 21, 2026
@bwoebi
Copy link
Copy Markdown
Collaborator

bwoebi commented Apr 21, 2026

Thank you, that looks pretty good at a glance, but let me run our CI on this first :-)

@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

datadog-datadog-prod-us1-2 Bot commented Apr 21, 2026

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 60.65% (-0.04%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f539019 | Docs | Datadog PR Page | Give us feedback!

@bwoebi
Copy link
Copy Markdown
Collaborator

bwoebi commented Apr 21, 2026

I'll take this PR and fix the CI accordingly.

Copy the Latest fixture to a permanent Version_7_3 directory before Latest is bumped to Symfony 8.
dd-trace-php is using `Request::get()` in multiple locations, but that method has been removed in Symfony 8.0:
symfony/http-foundation@e7e0520

This commit fixes the issue, and extends the Symfony testsuite to cover Symfony 8.0.
@TomBrouws TomBrouws force-pushed the tomb/fix-symfony-8 branch from c80bdf1 to f539019 Compare April 21, 2026 20:22
@TomBrouws
Copy link
Copy Markdown
Contributor Author

@bwoebi Just seeing your comment now, I've already pushed a new version. Verified locally that make test_web_symfony_latest and make test_web_symfony_73 complete successfully. I'll leave any additional changes up to you!

Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

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

@TomBrouws So, the pipeline just passes, awesome! Thanks a lot!

@bwoebi bwoebi merged commit 7c169ec into DataDog:master Apr 22, 2026
2082 of 2084 checks passed
@bwoebi bwoebi added this to the 1.19.0 milestone Apr 29, 2026
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.

[Bug]: Symfony integration broken by using method removed in Symfony 8.0

2 participants