From 8235d90ecc303c00912d0ce18c13748190ece57e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 3 Jun 2021 21:55:57 +0200 Subject: [PATCH] psalm happiness Signed-off-by: Arthur Schiwon --- build/psalm-baseline.xml | 3 --- lib/private/Accounts/AccountManager.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index fc6c553d0c..e95c067701 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1769,9 +1769,6 @@ - - $publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value'] - $this->retries + 1 diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index 801250004f..4d7aae644b 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -142,7 +142,7 @@ class AccountManager implements IAccountManager { } protected function sanitizeLength(array &$propertyData, bool $throwOnData = false): void { - if (isset($propertyData) && isset($propertyData['value']) && strlen($propertyData['value']) > 2048) { + if (isset($propertyData['value']) && strlen($propertyData['value']) > 2048) { if ($throwOnData) { throw new \InvalidArgumentException(); } else {