mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
fix phpstan issues
This commit is contained in:
@@ -11,6 +11,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\TaskBundle\Security\Authorization;
|
||||
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\TaskBundle\Entity\AbstractTask;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
|
||||
@@ -18,26 +20,16 @@ class AuthorizationEvent extends Event
|
||||
{
|
||||
public const VOTE = 'chill_task.vote';
|
||||
|
||||
/**
|
||||
* @var TokenInterface
|
||||
*/
|
||||
protected $token;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $vote;
|
||||
|
||||
/**
|
||||
* @param string $attribute
|
||||
* @param \Chill\PersonBundle\Entity\Person|\Chill\TaskBundle\Entity\AbstractTask|null $subject
|
||||
*/
|
||||
public function __construct(
|
||||
protected \Chill\PersonBundle\Entity\Person|\Chill\TaskBundle\Security\Authorization\Chill\TaskBundle\Entity\AbstractTask|null $subject,
|
||||
protected $attribute,
|
||||
TokenInterface $token
|
||||
private Person|AbstractTask|null $subject,
|
||||
private string $attribute,
|
||||
private TokenInterface $token
|
||||
) {
|
||||
$this->token = $token;
|
||||
}
|
||||
|
||||
public function getAttribute()
|
||||
|
Reference in New Issue
Block a user