psalm happiness

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2021-06-03 21:55:57 +02:00
parent 8ec640d14a
commit 8235d90ecc
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 1 additions and 4 deletions

View File

@ -1769,9 +1769,6 @@
</TooManyArguments>
</file>
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
<InvalidArrayOffset occurrences="1">
<code>$publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value']</code>
</InvalidArrayOffset>
<InvalidScalarArgument occurrences="1">
<code>$this-&gt;retries + 1</code>
</InvalidScalarArgument>

View File

@ -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 {