DX: fix phpstan issues

This commit is contained in:
Julien Fastré 2023-04-14 23:47:33 +02:00
parent ffa94dbe40
commit c48c5875c6
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -539,10 +539,13 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface
$userId = $this->mapCalendarToUser->getUserId($user);
if (null === $userId) {
throw new Exception('no remote calendar for this user', 55698, [
'user' => $user->getId(),
'remoteId' => $remoteId,
]);
throw new Exception(
sprintf(
'no remote calendar for this user: %s, remoteid: %s',
$user->getId(),
$remoteId
)
);
}
try {