Skip to content

Conversation

@jordisala1991
Copy link
Contributor

@jordisala1991 jordisala1991 commented Sep 6, 2024

Continuation of #116

I want to see what is failing to fix it.

Might close: #112 #115 #114 #121

@jordisala1991 jordisala1991 force-pushed the feature/sf7 branch 2 times, most recently from d26b452 to b7646a9 Compare September 6, 2024 08:28
@jordisala1991
Copy link
Contributor Author

friendly ping @nicolas-grekas @OskarStark

@jordisala1991
Copy link
Contributor Author

Can you take a look at this one? currently is blocking update for some bundles using security-acl and the fix is not complex :) Thank you

Co-authored-by: Nicolas Grekas <[email protected]>
@igordeveloper
Copy link

igordeveloper commented Oct 8, 2024

Any news about a release with this PR? This is blocking my update to SF7.
Thank you !!!

@OskarStark OskarStark changed the title Fix symfony 7 compatibility Fix Symfony 7 compatibility Oct 14, 2024
@leonobre
Copy link

Any news about about new release with this PR? This is blocking my update to SF7. Thank you !!!

Really! I'm also in the same situation, help us.

*/
trait AclVoterTrait
{
public function vote(TokenInterface $token, mixed $subject, array $attributes): int
Copy link
Member

Choose a reason for hiding this comment

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

the way to support multiple versions without such trait is actually to add the return type without adding the parameter type, thanks to variance rules.

however, note that adding the return type requires releasing this as a major version of the package, as this class is not final or internal.

Copy link
Contributor Author

@jordisala1991 jordisala1991 Oct 17, 2024

Choose a reason for hiding this comment

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

IMO, since this major version was previously tagged as it supports sf 7, we should fix it here, and in the next major remove all the unnecessary code and leave the voter clean again. wdyt? I see it more like bug fixing rather than adding new things.

@fabpot
Copy link
Member

fabpot commented Oct 18, 2024

Thank you @jordisala1991.

@fabpot fabpot merged commit 96a1d7e into symfony:main Oct 18, 2024
8 checks passed
@jordisala1991 jordisala1991 deleted the feature/sf7 branch October 18, 2024 06:16
@fabpot
Copy link
Member

fabpot commented Oct 18, 2024

New release done as well.

@igordeveloper
Copy link

New release done as well.

Thank you.

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.

8 participants