DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -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;
}