apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -33,7 +33,7 @@ class CalendarRangeSyncer
/**
* @param MachineHttpClient $machineHttpClient
*/
public function __construct(private EntityManagerInterface $em, private LoggerInterface $logger, private HttpClientInterface $machineHttpClient)
public function __construct(private readonly EntityManagerInterface $em, private readonly LoggerInterface $logger, private readonly HttpClientInterface $machineHttpClient)
{
}

View File

@@ -32,7 +32,7 @@ use function in_array;
class CalendarSyncer
{
public function __construct(private LoggerInterface $logger, private HttpClientInterface $machineHttpClient, private UserRepositoryInterface $userRepository)
public function __construct(private readonly LoggerInterface $logger, private readonly HttpClientInterface $machineHttpClient, private readonly UserRepositoryInterface $userRepository)
{
}
@@ -119,7 +119,7 @@ class CalendarSyncer
}
$email = $attendee['emailAddress']['address'];
$emails[] = strtolower($email);
$emails[] = strtolower((string) $email);
$user = $this->userRepository->findOneByUsernameOrEmail($email);
if (null === $user) {