8000 denyAccessUnlessGranted still allows $attributes although it was deprecated since Symfony 4.4 · Issue #37824 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

denyAccessUnlessGranted still allows $attributes although it was deprecated since Symfony 4.4 #37824

@Nijusan

Description

@Nijusan

Symfony version(s) affected: > 5.0

Description
In the AbstractController the Method Signature for denyAccessUnlessGranted accepts still an array of attributes as the parameter name implicates $attributes... using still an array breaks further implementations without having the deprecation notice removed lately in the AuthorizationChecker.
So this is not breaking the system, but resulting in a nested array with all attributes passed to the Voter->supports-Method.

How to reproduce
passing an array to the denyAccessUnlessGranted Method ->
$this->denyAccessUnlessGranted(['foo', 'bar'], $bazz);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet< 2E83 /span>

    Development

    No branches or pull requests

    Issue actions

      0