Skip to content
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

Fix wrong return type-hint depending on which symfony/translation version is installed #582

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

deguif
Copy link
Contributor

@deguif deguif commented Dec 11, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License Apache2

Description

Currently type-hint is based on Kernel version, which in my case is wrong as we use individual package versioning (kernel is in version 5.4 but translation component is on 6.x version).

As the method getCatalogues was added to TranslatorBagInterface in 6.0, checking for this method should be better to handle this case.

@goetas goetas closed this Dec 12, 2023
@goetas goetas reopened this Dec 12, 2023
@goetas
Copy link
Collaborator

goetas commented Dec 12, 2023

could you please check why phpunit is failing for sf 6.x? if it helps feel free to require 6.4 as min version

@deguif deguif force-pushed the fix-wrong-contracts branch 2 times, most recently from 14887d2 to c558b98 Compare December 12, 2023 09:28
@deguif
Copy link
Contributor Author

deguif commented Dec 12, 2023

I updated packages requirements only for require-dev
I also excluded php 7.4 in the matrix for symfony version 6.4
All green now.

@goetas goetas merged commit da38bd0 into schmittjoh:master Dec 12, 2023
17 checks passed
@deguif deguif deleted the fix-wrong-contracts branch December 12, 2023 10:10
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.

None yet

2 participants