apply rector rules: symfony **UP TO** 44

This commit is contained in:
2023-07-28 01:52:53 +02:00
parent b6a094aeee
commit c20f65eebb
88 changed files with 211 additions and 320 deletions

View File

@@ -17,7 +17,7 @@ use Chill\TaskBundle\Entity\AbstractTask;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
class AuthorizationEvent extends Event
class AuthorizationEvent extends \Symfony\Contracts\EventDispatcher\Event
{
final public const VOTE = 'chill_task.vote';

View File

@@ -95,7 +95,7 @@ final class TaskVoter extends AbstractChillVoter implements ProvideRoleHierarchy
$event = new AuthorizationEvent($subject, $attribute, $token);
$this->eventDispatcher->dispatch(AuthorizationEvent::VOTE, $event);
$this->eventDispatcher->dispatch($event, AuthorizationEvent::VOTE);
if ($event->hasVote()) {
$this->logger->debug('The TaskVoter is overriding by '