mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -18,16 +18,6 @@ class AuthorizationEvent extends Event
|
||||
{
|
||||
public const VOTE = 'chill_task.vote';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $attribute;
|
||||
|
||||
/**
|
||||
* @var \Chill\PersonBundle\Entity\Person|Chill\TaskBundle\Entity\AbstractTask|null
|
||||
*/
|
||||
protected $subject;
|
||||
|
||||
/**
|
||||
* @var TokenInterface
|
||||
*/
|
||||
@@ -38,13 +28,15 @@ class AuthorizationEvent extends Event
|
||||
*/
|
||||
protected $vote;
|
||||
|
||||
/**
|
||||
* @param string $attribute
|
||||
* @param \Chill\PersonBundle\Entity\Person|\Chill\TaskBundle\Entity\AbstractTask|null $subject
|
||||
*/
|
||||
public function __construct(
|
||||
$subject,
|
||||
$attribute,
|
||||
protected \Chill\PersonBundle\Entity\Person|\Chill\TaskBundle\Security\Authorization\Chill\TaskBundle\Entity\AbstractTask|null $subject,
|
||||
protected $attribute,
|
||||
TokenInterface $token
|
||||
) {
|
||||
$this->subject = $subject;
|
||||
$this->attribute = $attribute;
|
||||
$this->token = $token;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user