Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cleanup AccessDecisionManager #54060

Open
Labels
@homersimpsons

Description

@homersimpsons

Description

While looking at theVoterInterface::vote function, it was rather hard to figure out why$attributes is anarray (and what is it expected to contain):

publicfunctionvote(TokenInterface$token,mixed$subject,array$attributes):int;

It looks like this should be removed since Symfony 6.0:

// Special case for AccessListener, do not remove the right side of the condition before 6.0

I could not find any issue about this in the backlog.

I think it is also the time to update$attributes to astring, but that is a breaking change. This may not be possible, see#54060 (comment).

Example

interface VoterInterface{publicfunctionvote(TokenInterface$token,mixed$subject,string$attribute):int;}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp