Skip to content

Conversation

@Litarnus
Copy link
Contributor

@Litarnus Litarnus commented Oct 31, 2025

We need to cleanup composer.json and the CI config once Symfony 8 is properly released to use the stable version instead of BETA before merging this.

@getsentry getsentry deleted a comment from linear bot Oct 31, 2025
@garak
Copy link
Contributor

garak commented Nov 12, 2025

Last week sentry-php released a new version compatible with Symfony 8. You should try re-running the CI

@Litarnus
Copy link
Contributor Author

@garak I pinned the version to 4.18 now. And while the entire pipeline doesn't pass because of php-cs-fixer, Symfony 8 passes.

@garak
Copy link
Contributor

garak commented Nov 12, 2025

@garak I pinned the version to 4.18 now. And while the entire pipeline doesn't pass because of php-cs-fixer, Symfony 8 passes.

And why did you pin it?

@Litarnus
Copy link
Contributor Author

And why did you pin it?

My mistake, I wanted to say bumped

@Litarnus Litarnus linked an issue Nov 12, 2025 that may be closed by this pull request
2 tasks
@Litarnus Litarnus marked this pull request as ready for review November 18, 2025 11:59
@Schneider95
Copy link

Hi,

any idea if the support for Symfony 8 will be added to the 4.x branch ?

Thanks in advance.

@Litarnus
Copy link
Contributor Author

Hi,

any idea if the support for Symfony 8 will be added to the 4.x branch ?

Thanks in advance.

I'm afraid it will not be added. Could you tell us what prevents you from upgrading to 5.x? Maybe we can find a solution for that

composer.json Outdated
"keywords": ["logging", "errors", "symfony", "sentry"],
"homepage": "http://getsentry.com",
"minimum-stability": "dev",
"prefer-stable": false,
Copy link

Choose a reason for hiding this comment

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

Bug: Incorrect prefer-stable setting causes unstable dependency resolution

The prefer-stable setting is set to false, which tells Composer to prefer unstable package versions over stable ones. Combined with minimum-stability: dev, this could cause Composer to install dev/beta/alpha versions of all dependencies even when stable releases exist. To support Symfony 8 beta while keeping other dependencies stable, prefer-stable needs to be true (which is actually Composer's default when not specified). With the current setting, projects installing this bundle may get unexpected unstable versions of transitive dependencies.

Fix in Cursor Fix in Web

@Schneider95
Copy link

I'm afraid it will not be added. Could you tell us what prevents you from upgrading to 5.x? Maybe we can find a solution for that

Unfortunately, no. My company is stuck with an old Sentry in version 8.21.0, which we can use only with sentry-symfony in version 4.

@cleptric
Copy link
Member

cleptric commented Nov 27, 2025

I'm afraid it will not be added. Could you tell us what prevents you from upgrading to 5.x? Maybe we can find a solution for that

Unfortunately, no. My company is stuck with an old Sentry in version 8.21.0, which we can use only with sentry-symfony in version 4.

Our SaaS service sentry.io now offers EU data locality (Germany to be precise). Sentry 8.21.0 came out in Oct 2017, with the required minimum self-hosted version being released in Jun, 2020.
I kindly suggest you update your self-hosted installation or switch to SaaS. Supporting a more than eight year old Sentry version is sadly out of scope for us.

@peter17
Copy link

peter17 commented Nov 28, 2025

Last test is blocked by doctrine/DoctrineBundle#1910

@peter17
Copy link

peter17 commented Nov 29, 2025

Thanks @greg0ire!

@Litarnus Litarnus merged commit 39eccfb into master Dec 1, 2025
73 of 74 checks passed
@Litarnus Litarnus deleted the martinl/symfony-8 branch December 1, 2025 09:52
mbabker added a commit to mbabker/sentry-symfony that referenced this pull request Dec 3, 2025
getsentry#968 migrated the service definitions from XML to YAML, however, the bundle only declares the YAML component as a development dependency.  This causes the bundle's services to not be loaded if an application does not have the component installed, therefore, the YAML component is now a production dependency of the bundle.
mbabker added a commit to mbabker/sentry-symfony that referenced this pull request Dec 3, 2025
getsentry#968 migrated the service definitions from XML to YAML, however, the bundle only declares the YAML component as a development dependency.  This causes the bundle's services to not be loaded if an application does not have the component installed, therefore, the YAML component is now a production dependency of the bundle.
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.

Support for Symfony 8

7 participants