Skip to content

Declare incompatibility with symfony/security-core 6 #97

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 1 commit into from

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Sep 6, 2021

On the 6.0 branch, symfony/security-core has added return type declarations to the VoterInterface. Our implementation AclVoter is incompatible which is why our high-deps CI job is currently failing.

Since this incompatibility is not trivial to fix in a backwards-compatible manner, I propose to remove the 6.0 branch from the list of compatible versions.

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@wouterj
Copy link
Member

wouterj commented Sep 6, 2021

Unfortunately, doing this will break the symfony/symfony CI as it requires this component.

(we did this just before we made the previous release, which you corrected swiftly in #92 )

@nicolas-grekas
Copy link
Member

We'd better remove the return types on branch 6.0 I suppose.

@wouterj
Copy link
Member

wouterj commented Sep 6, 2021

Maybe I'm missing something, but doesn't that mean that we must remove return types from all methods that are in classes that are not internal or final? That would be a real bummer...

@nicolas-grekas
Copy link
Member

See my monolog on the topic at symfony/symfony#42496 :)

@derrabus
Copy link
Member Author

derrabus commented Sep 6, 2021

Well, for this library, it's actually one (!) method that causes us trouble. I'm convinced we can manage that without reverting every return type we've added so far. 😱

@nicolas-grekas
Copy link
Member

We'd remove the return type only from VoterInterface::vote() then.
The pain we feel now is the one the community will also feel very soon.
Removing a few return types to reduce the migration cost looks worth it to me.

@derrabus
Copy link
Member Author

derrabus commented Sep 6, 2021

We'd remove the return type only from VoterInterface::vote() then.

symfony/symfony#42901

fabpot added a commit to symfony/symfony that referenced this pull request Sep 7, 2021
This PR was merged into the 6.0 branch.

Discussion
----------

[Security] Relax return type on VoterInterface

| Q             | A
| ------------- | ---
| Branch?       | 6.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | symfony/security-acl#97 (comment)
| License       | MIT
| Doc PR        | N/A

Commits
-------

c91712c [Security] Relax return type on VoterInterface
@derrabus
Copy link
Member Author

derrabus commented Sep 7, 2021

Closing because this has been resolved in Symfony.

@derrabus derrabus closed this Sep 7, 2021
@derrabus derrabus deleted the bugfix/symfony-6-conflict branch September 7, 2021 10:14
@nicolas-grekas
Copy link
Member

Linking to symfony/symfony#43021 for history.

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.

3 participants