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

@@ -39,11 +39,6 @@ class Mailer
*/
private $logger;
/**
* @var array
*/
private $routeParameters;
/**
* @var RouterInterface
*/
@@ -62,6 +57,7 @@ class Mailer
* Mailer constructor.
*
* @param $routeParameters
* @param mixed[] $routeParameters
*/
public function __construct(
MailerInterface $mailer,
@@ -69,14 +65,13 @@ class Mailer
EngineInterface $twig,
RouterInterface $router,
TranslatorInterface $translator,
$routeParameters
protected $routeParameters
) {
$this->logger = $logger;
$this->twig = $twig;
$this->mailer = $mailer;
$this->router = $router;
$this->translator = $translator;
$this->routeParameters = $routeParameters;
}
/**
@@ -112,15 +107,13 @@ class Mailer
* @param array $subject Subject of the message [ 0 => $message (required), 1 => $parameters (optional), 3 => $domain (optional) ]
* @param array $bodies The bodies. An array where keys are the contentType and values the bodies
* @param callable $callback a callback to customize the message (add attachment, etc.)
* @param mixed $recipient
* @param mixed $force
*/
public function sendNotification(
$recipient,
mixed $recipient,
array $subject,
array $bodies,
?callable $callback = null,
$force = false
mixed $force = false
) {
$fromEmail = $this->routeParameters['from_email'];
$fromName = $this->routeParameters['from_name'];