Skip to content

Fixed deprecated deprecations (fixes #419) #421

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

Closed
wants to merge 2 commits into from

Conversation

althaus
Copy link
Contributor

@althaus althaus commented Sep 8, 2020

No description provided.

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Hey @althaus !

Thank you for this PR and sorry for late review... I left a few comments, could you take a look at them? And looks like tests are not green here, I wonder if it's related to these changes

@althaus
Copy link
Contributor Author

althaus commented Sep 29, 2020

PHPStan complains about changes in the Symfony bundles which looks like bad dependencies.

Travis could be related. I'll check the tests.

@bocharsky-bw
Copy link
Member

Travis could be related. I'll check the tests.

Thank you! Let me know if it's related. If it's not - we still can merge it I think but would be cool to fix it anyway, probably in a separate PR

@althaus
Copy link
Contributor Author

althaus commented Oct 6, 2020

Travis could be related. I'll check the tests.

Thank you! Let me know if it's related. If it's not - we still can merge it I think but would be cool to fix it anyway, probably in a separate PR

After checking Travis I came up with a show stopper. Travis complains as the new deprecation syntax requires Symfony 5. The prior versions 3 and 4 only support the simple string. I have no clue how to solve this, if you don't want to release a version of this bundle which drops support for those earlier versions. :(

@bocharsky-bw
Copy link
Member

Ah, I see... that's a bummer :/ Thank you for researching on it! Yeah, we do want to support those versions too, so I think we can't merge this as is for now, unfortunately. If anyone knows how to work around this in a reasonable way and avoid BC breaks - let's discuss, otherwise, we need to wait until we drop Symfony 3 and 4 versions support to merge this

@rogamoore
Copy link

rogamoore commented Oct 26, 2020

Related to this I found symfony/symfony#37284 and https://github.com/doctrine/DoctrineBundle/blob/2.0.x/DependencyInjection/Configuration.php#L95

I'm not very familiar with bundle configurations, but to me it looks like that at least the deprecation part needs to be moved from yaml to php to be able to dynamically use one or three arguments - depending on the Symfony version.

@Kynno
Copy link

Kynno commented Jan 13, 2021

Hey, any news on this?

@althaus
Copy link
Contributor Author

althaus commented Jan 14, 2021

Hey, any news on this?

No, to solve the issue the (relevant parts of the) configuration have to be moved from YAML to PHP. Otherwise you won't be able to support both variants. I don't see changing the config type in the scope of this PR, so feel free to create another issue. I'm pretty sure there tools out there which can automate the conversion.

@Nyholm Nyholm force-pushed the 419-fix-deprecations branch from f1deb9b to 8828278 Compare March 26, 2021 18:30
@althaus althaus closed this Mar 27, 2021
@althaus althaus deleted the 419-fix-deprecations branch July 1, 2021 10:07
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.

4 participants