-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New doctrine/dbal polyfills have side effects #484
Comments
I agree that this approach is not great; we did something similar with the Symfony classes, in the first part of the file, but in that case we declared completely new names to avoid clashing. @ste93cry do you think that we can do the same here? |
It should. Both aliases are against a classname that it's our own, so we shouldn't have this issue anymore. @dFayet can you test our |
@Jean85 it reduces the numbers of errors possible, but it does not solve the issue as the alias |
Yep, that was my thinking. But to be honest I don't see how we could get rid of the remaining ones, we have to implement the interface and in this case it's Symfony not making his own business |
I don't think this is Symfony's business here, we have problems with Doctrine. Is the alias needed somewhere else than in |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Since sentry/sentry-symfony version 4.1.0, new doctrine/dbal polyfills were added:
sentry-symfony/src/aliases.php
Lines 97 to 120 in b2500fb
Related PR: #423
This has the effect of misleading code based on the existence, or not, of these doctrine/dbal v2 interfaces.
As basing the detection only on that is maybe not a great idea, creating polyfill for 3rd party library seems to be quite odd too.
The text was updated successfully, but these errors were encountered: