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 symfony 7 compatibility #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix symfony 7 compatibility #116

wants to merge 1 commit into from

Conversation

core23
Copy link

@core23 core23 commented Feb 5, 2024

Fixes #114 by providing the correct method signature, depending on the loaded symfony/security-core version.

Might close: #112 #115 #114

@core23 core23 force-pushed the symfony7 branch 4 times, most recently from ff4faca to 4f067d9 Compare February 5, 2024 15:39
@core23
Copy link
Author

core23 commented Feb 14, 2024

Is there anything left to do? This blocks symfony 7 updates :(

@VincentLanglet
Copy link
Contributor

Is there anything left to do? This blocks symfony 7 updates :(

Friendly ping @nicolas-grekas maybe (?)

Voter/AclVoter.php Outdated Show resolved Hide resolved
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Yes great thanks.

Voter/AclVoter.php Outdated Show resolved Hide resolved
@core23
Copy link
Author

core23 commented Feb 20, 2024

Two ✅

Can be merge this @nicolas-grekas ?

@chq81
Copy link

chq81 commented May 8, 2024

@core23 Thanks for working on the symfony 7 compatibility. I stumbled upon this and saw that checks are failing due to deprecations. I was able to fix them locally. I could provide a separate PR, but wouldn't it be better to provide the code to you? Should I create a PR in your fork which you then can merge in your symfony7 branch?

@core23
Copy link
Author

core23 commented May 8, 2024

AFAIK they are not related to this PR, so it would be better to fix this deprecation issues on the main project first.

@chq81
Copy link

chq81 commented May 8, 2024

AFAIK they are not related to this PR, so it would be better to fix this deprecation issues on the main project first.

I will do that, thanks.

@chq81
Copy link

chq81 commented May 8, 2024

@core23 I just had a look. As the current tagged version is 3.3.3, which bumped Symfony up to 7, I cannot fix the deprecation warnings without fixing the return type declarations too, which are part of your PR :)

@chq81 chq81 mentioned this pull request May 10, 2024
@chq81
Copy link

chq81 commented May 10, 2024

@nicolas-grekas Hi Nicolas, could you maybe help out? How should we proceed with the deprecation warnings? I could either bump up the code to the current implementation, but then the lowest versions are not supported anymore. Or do we disable deprecations on the highest versions?
I am a bit of lost here, but as I am not a regular commiter in github, maybe you can help me out? Thanks!

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.

declaration incompatibility error in SF7
5 participants