-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
I am getting error when trying to use Security attribute on extended type class.
I have mutation class
#[Type]
final class RealtyMuation {
// some methods
}
Then I have extended class, with Security attribute usage
#[ExtendType(RealtyMutation::class)]
final class RealtyCheckupMutation {
#[Field]
#[Security(
expression: "is_granted('CAN_EDIT_REALTY', realtyId)",
failWith: new AccessDeniedException(),
)]
public funtion startTechnicalInspection(RealtyMutation $mutation, UuidInterface $realtyId)
{
}
}
Which gives me error
array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
here
$argsByName = array_combine($argsName, $args); |
Version: v5.0.3
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers