Update baseline

The rest we will just fix as we go

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-03-08 09:54:08 +01:00
parent 10ec495682
commit c38069fab3
1 changed files with 67 additions and 38 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.2.1@ea9cb72143b77e7520c52fa37290bd8d8bc88fd9"> <files psalm-version="4.6.2@bca09d74adc704c4eaee36a3c3e9d379e290fc3b">
<file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php"> <file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
<MoreSpecificImplementedParamType occurrences="1"> <MoreSpecificImplementedParamType occurrences="1">
<code>$calendarData</code> <code>$calendarData</code>
@ -197,6 +197,9 @@
<code>null</code> <code>null</code>
<code>null</code> <code>null</code>
</NullableReturnStatement> </NullableReturnStatement>
<RedundantCast occurrences="1">
<code>(int)$calendarId</code>
</RedundantCast>
<TooManyArguments occurrences="15"> <TooManyArguments occurrences="15">
<code>dispatch</code> <code>dispatch</code>
<code>dispatch</code> <code>dispatch</code>
@ -227,6 +230,7 @@
<code>new Inbox($this-&gt;caldavBackend, $this-&gt;principalInfo['uri'])</code> <code>new Inbox($this-&gt;caldavBackend, $this-&gt;principalInfo['uri'])</code>
<code>new Outbox($this-&gt;config, $this-&gt;principalInfo['uri'])</code> <code>new Outbox($this-&gt;config, $this-&gt;principalInfo['uri'])</code>
<code>new Subscription($this-&gt;caldavBackend, $subscription)</code> <code>new Subscription($this-&gt;caldavBackend, $subscription)</code>
<code>new \Sabre\CalDAV\Notifications\Collection($this-&gt;caldavBackend, $this-&gt;principalInfo['uri'])</code>
</InvalidReturnStatement> </InvalidReturnStatement>
<InvalidReturnType occurrences="1"> <InvalidReturnType occurrences="1">
<code>getChild</code> <code>getChild</code>
@ -365,9 +369,6 @@
<code>getDateTime</code> <code>getDateTime</code>
<code>getDateTime</code> <code>getDateTime</code>
<code>getDateTime</code> <code>getDateTime</code>
<code>getDateTime</code>
<code>getDateTime</code>
<code>getDateTime</code>
<code>hasTime</code> <code>hasTime</code>
<code>hasTime</code> <code>hasTime</code>
<code>isFloating</code> <code>isFloating</code>
@ -448,6 +449,9 @@
<NullableReturnStatement occurrences="1"> <NullableReturnStatement occurrences="1">
<code>null</code> <code>null</code>
</NullableReturnStatement> </NullableReturnStatement>
<RedundantCast occurrences="1">
<code>(int)$addressBookId</code>
</RedundantCast>
<TooManyArguments occurrences="3"> <TooManyArguments occurrences="3">
<code>dispatch</code> <code>dispatch</code>
<code>dispatch</code> <code>dispatch</code>
@ -883,8 +887,6 @@
<code>string</code> <code>string</code>
</InvalidReturnType> </InvalidReturnType>
<UndefinedMethod occurrences="5"> <UndefinedMethod occurrences="5">
<code>getDateTime</code>
<code>getDateTime</code>
<code>getDateTime</code> <code>getDateTime</code>
<code>getDateTime</code> <code>getDateTime</code>
<code>hasTime</code> <code>hasTime</code>
@ -1028,8 +1030,7 @@
<InvalidThrow occurrences="1"> <InvalidThrow occurrences="1">
<code>throw $exception;</code> <code>throw $exception;</code>
</InvalidThrow> </InvalidThrow>
<RedundantCondition occurrences="2"> <RedundantCondition occurrences="1">
<code>$encryptedFileKey</code>
<code>$userSession</code> <code>$userSession</code>
</RedundantCondition> </RedundantCondition>
</file> </file>
@ -1076,6 +1077,9 @@
<code>$shareId</code> <code>$shareId</code>
<code>(int)$data['id']</code> <code>(int)$data['id']</code>
</InvalidScalarArgument> </InvalidScalarArgument>
<RedundantCast occurrences="1">
<code>(int)$id</code>
</RedundantCast>
</file> </file>
<file src="apps/federatedfilesharing/lib/Notifications.php"> <file src="apps/federatedfilesharing/lib/Notifications.php">
<InvalidReturnType occurrences="3"> <InvalidReturnType occurrences="3">
@ -1795,17 +1799,8 @@
</TooManyArguments> </TooManyArguments>
</file> </file>
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php"> <file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
<InvalidArrayOffset occurrences="10"> <InvalidArrayOffset occurrences="1">
<code>$publicData[IAccountManager::PROPERTY_ADDRESS]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value']</code> <code>$publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_EMAIL]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_PHONE]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_TWITTER]['signature']</code>
<code>$publicData[IAccountManager::PROPERTY_TWITTER]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_TWITTER]['verified']</code>
<code>$publicData[IAccountManager::PROPERTY_WEBSITE]['signature']</code>
<code>$publicData[IAccountManager::PROPERTY_WEBSITE]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_WEBSITE]['verified']</code>
</InvalidArrayOffset> </InvalidArrayOffset>
<InvalidScalarArgument occurrences="1"> <InvalidScalarArgument occurrences="1">
<code>$this-&gt;retries + 1</code> <code>$this-&gt;retries + 1</code>
@ -1875,9 +1870,9 @@
</TooManyArguments> </TooManyArguments>
</file> </file>
<file src="apps/settings/lib/Hooks.php"> <file src="apps/settings/lib/Hooks.php">
<InvalidArgument occurrences="1"> <InvalidArrayOffset occurrences="1">
<code>[$user-&gt;getEMailAddress() =&gt; $user-&gt;getDisplayName()]</code> <code>[$user-&gt;getEMailAddress() =&gt; $user-&gt;getDisplayName()]</code>
</InvalidArgument> </InvalidArrayOffset>
</file> </file>
<file src="apps/settings/lib/Settings/Admin/Security.php"> <file src="apps/settings/lib/Settings/Admin/Security.php">
<UndefinedInterfaceMethod occurrences="1"> <UndefinedInterfaceMethod occurrences="1">
@ -1923,6 +1918,9 @@
<code>$shareId</code> <code>$shareId</code>
<code>(int)$data['id']</code> <code>(int)$data['id']</code>
</InvalidScalarArgument> </InvalidScalarArgument>
<RedundantCast occurrences="1">
<code>(int)$id</code>
</RedundantCast>
</file> </file>
<file src="apps/systemtags/lib/Activity/Listener.php"> <file src="apps/systemtags/lib/Activity/Listener.php">
<InvalidScalarArgument occurrences="2"> <InvalidScalarArgument occurrences="2">
@ -2054,6 +2052,9 @@
<InvalidArgument occurrences="1"> <InvalidArgument occurrences="1">
<code>$record</code> <code>$record</code>
</InvalidArgument> </InvalidArgument>
<InvalidArrayOffset occurrences="1">
<code>[$attr =&gt; $result['values']]</code>
</InvalidArrayOffset>
<InvalidReturnStatement occurrences="2"> <InvalidReturnStatement occurrences="2">
<code>$uuid</code> <code>$uuid</code>
<code>$values</code> <code>$values</code>
@ -2061,11 +2062,10 @@
<InvalidReturnType occurrences="1"> <InvalidReturnType occurrences="1">
<code>string[]</code> <code>string[]</code>
</InvalidReturnType> </InvalidReturnType>
<InvalidScalarArgument occurrences="4"> <InvalidScalarArgument occurrences="3">
<code>$e-&gt;getCode()</code> <code>$e-&gt;getCode()</code>
<code>$key</code> <code>$key</code>
<code>$key</code> <code>$key</code>
<code>[$attr =&gt; $result['values']]</code>
</InvalidScalarArgument> </InvalidScalarArgument>
<NullArgument occurrences="1"> <NullArgument occurrences="1">
<code>$cookie</code> <code>$cookie</code>
@ -2082,7 +2082,7 @@
</TypeDoesNotContainNull> </TypeDoesNotContainNull>
<TypeDoesNotContainType occurrences="2"> <TypeDoesNotContainType occurrences="2">
<code>!is_null($attr) &amp;&amp; !is_array($attr)</code> <code>!is_null($attr) &amp;&amp; !is_array($attr)</code>
<code>isset($ldapRecord[$this-&gt;connection-&gt;$uuidAttr])</code> <code>count($usedNames) === 0</code>
</TypeDoesNotContainType> </TypeDoesNotContainType>
</file> </file>
<file src="apps/user_ldap/lib/AppInfo/Application.php"> <file src="apps/user_ldap/lib/AppInfo/Application.php">
@ -2239,6 +2239,12 @@
<InvalidOperand occurrences="1"> <InvalidOperand occurrences="1">
<code>$result</code> <code>$result</code>
</InvalidOperand> </InvalidOperand>
<RedundantCondition occurrences="1">
<code>isset($qb)</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="1">
<code>isset($qb)</code>
</TypeDoesNotContainNull>
</file> </file>
<file src="apps/user_ldap/lib/Proxy.php"> <file src="apps/user_ldap/lib/Proxy.php">
<InvalidDocblock occurrences="1"> <InvalidDocblock occurrences="1">
@ -2638,6 +2644,7 @@
<file src="core/routes.php"> <file src="core/routes.php">
<InvalidScope occurrences="2"> <InvalidScope occurrences="2">
<code>$this</code> <code>$this</code>
<code>$this</code>
</InvalidScope> </InvalidScope>
</file> </file>
<file src="core/templates/layout.public.php"> <file src="core/templates/layout.public.php">
@ -2766,6 +2773,11 @@
<code>$this-&gt;bootedApps</code> <code>$this-&gt;bootedApps</code>
</InvalidPropertyAssignmentValue> </InvalidPropertyAssignmentValue>
</file> </file>
<file src="lib/private/AppFramework/Bootstrap/FunctionInjector.php">
<UndefinedMethod occurrences="1">
<code>getName</code>
</UndefinedMethod>
</file>
<file src="lib/private/AppFramework/DependencyInjection/DIContainer.php"> <file src="lib/private/AppFramework/DependencyInjection/DIContainer.php">
<ImplementedReturnTypeMismatch occurrences="1"> <ImplementedReturnTypeMismatch occurrences="1">
<code>boolean|null</code> <code>boolean|null</code>
@ -2895,6 +2907,14 @@
<code>$default</code> <code>$default</code>
</MoreSpecificImplementedParamType> </MoreSpecificImplementedParamType>
</file> </file>
<file src="lib/private/AppFramework/Utility/SimpleContainer.php">
<UndefinedMethod occurrences="4">
<code>getName</code>
<code>isBuiltin</code>
<code>isBuiltin</code>
<code>isBuiltin</code>
</UndefinedMethod>
</file>
<file src="lib/private/Archive/TAR.php"> <file src="lib/private/Archive/TAR.php">
<InvalidReturnStatement occurrences="1"> <InvalidReturnStatement occurrences="1">
<code>$this-&gt;tar-&gt;extractInString($path)</code> <code>$this-&gt;tar-&gt;extractInString($path)</code>
@ -3056,6 +3076,9 @@
<code>bool|mixed</code> <code>bool|mixed</code>
<code>bool|mixed</code> <code>bool|mixed</code>
</LessSpecificImplementedReturnType> </LessSpecificImplementedReturnType>
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this-&gt;storage)</code>
</RedundantPropertyInitializationCheck>
</file> </file>
<file src="lib/private/Collaboration/Collaborators/GroupPlugin.php"> <file src="lib/private/Collaboration/Collaborators/GroupPlugin.php">
<UndefinedThisPropertyAssignment occurrences="1"> <UndefinedThisPropertyAssignment occurrences="1">
@ -3146,11 +3169,6 @@
<code>$this-&gt;application</code> <code>$this-&gt;application</code>
</UndefinedThisPropertyFetch> </UndefinedThisPropertyFetch>
</file> </file>
<file src="lib/private/Contacts/ContactsMenu/ActionProviderStore.php">
<ParadoxicalCondition occurrences="1">
<code>!isset($info['contactsmenu']) || !isset($info['contactsmenu'])</code>
</ParadoxicalCondition>
</file>
<file src="lib/private/Contacts/ContactsMenu/Manager.php"> <file src="lib/private/Contacts/ContactsMenu/Manager.php">
<InvalidNullableReturnType occurrences="1"> <InvalidNullableReturnType occurrences="1">
<code>IEntry</code> <code>IEntry</code>
@ -3416,9 +3434,6 @@
<code>$path</code> <code>$path</code>
<code>self::SCAN_RECURSIVE_INCOMPLETE</code> <code>self::SCAN_RECURSIVE_INCOMPLETE</code>
</InvalidScalarArgument> </InvalidScalarArgument>
<TypeDoesNotContainType occurrences="1">
<code>$data ?? $this-&gt;getData($file)</code>
</TypeDoesNotContainType>
</file> </file>
<file src="lib/private/Files/Cache/Storage.php"> <file src="lib/private/Files/Cache/Storage.php">
<InvalidNullableReturnType occurrences="1"> <InvalidNullableReturnType occurrences="1">
@ -3770,8 +3785,6 @@
<InvalidOperand occurrences="2"> <InvalidOperand occurrences="2">
<code>!$permissions</code> <code>!$permissions</code>
<code>$result</code> <code>$result</code>
<code>$result</code>
<code>$result</code>
</InvalidOperand> </InvalidOperand>
<NoInterfaceProperties occurrences="8"> <NoInterfaceProperties occurrences="8">
<code>$storage-&gt;cache</code> <code>$storage-&gt;cache</code>
@ -3804,6 +3817,9 @@
<NullableReturnStatement occurrences="1"> <NullableReturnStatement occurrences="1">
<code>null</code> <code>null</code>
</NullableReturnStatement> </NullableReturnStatement>
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this-&gt;authType)</code>
</RedundantPropertyInitializationCheck>
</file> </file>
<file src="lib/private/Files/Storage/FailedStorage.php"> <file src="lib/private/Files/Storage/FailedStorage.php">
<InvalidReturnStatement occurrences="2"> <InvalidReturnStatement occurrences="2">
@ -4078,7 +4094,8 @@
<code>null</code> <code>null</code>
<code>null</code> <code>null</code>
</NullableReturnStatement> </NullableReturnStatement>
<RedundantCondition occurrences="3"> <RedundantCondition occurrences="4">
<code>$data</code>
<code>$result &amp;&amp; in_array('delete', $hooks) and $result</code> <code>$result &amp;&amp; in_array('delete', $hooks) and $result</code>
<code>$storage1</code> <code>$storage1</code>
<code>is_resource($source)</code> <code>is_resource($source)</code>
@ -4314,9 +4331,6 @@
<RedundantCondition occurrences="1"> <RedundantCondition occurrences="1">
<code>method_exists(self::$cache, 'deleteMulti')</code> <code>method_exists(self::$cache, 'deleteMulti')</code>
</RedundantCondition> </RedundantCondition>
<TypeDoesNotContainType occurrences="1">
<code>\Memcached::HAVE_IGBINARY</code>
</TypeDoesNotContainType>
</file> </file>
<file src="lib/private/Memcache/Redis.php"> <file src="lib/private/Memcache/Redis.php">
<InvalidMethodCall occurrences="2"> <InvalidMethodCall occurrences="2">
@ -4487,6 +4501,9 @@
<RedundantCondition occurrences="1"> <RedundantCondition occurrences="1">
<code>$file !== false</code> <code>$file !== false</code>
</RedundantCondition> </RedundantCondition>
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this-&gt;routingFiles)</code>
</RedundantPropertyInitializationCheck>
</file> </file>
<file src="lib/private/Search.php"> <file src="lib/private/Search.php">
<RedundantCondition occurrences="1"> <RedundantCondition occurrences="1">
@ -4569,8 +4586,9 @@
<code>microtime(true)</code> <code>microtime(true)</code>
<code>microtime(true)</code> <code>microtime(true)</code>
</InvalidScalarArgument> </InvalidScalarArgument>
<RedundantCondition occurrences="1"> <RedundantCondition occurrences="2">
<code>$content !== ''</code> <code>$content !== ''</code>
<code>$type === 'pdo'</code>
</RedundantCondition> </RedundantCondition>
</file> </file>
<file src="lib/private/Setup/AbstractDatabase.php"> <file src="lib/private/Setup/AbstractDatabase.php">
@ -4886,6 +4904,9 @@
<TooManyArguments occurrences="1"> <TooManyArguments occurrences="1">
<code>dispatch</code> <code>dispatch</code>
</TooManyArguments> </TooManyArguments>
<UndefinedMethod occurrences="1">
<code>getByEmail</code>
</UndefinedMethod>
</file> </file>
<file src="lib/private/User/User.php"> <file src="lib/private/User/User.php">
<InvalidArgument occurrences="5"> <InvalidArgument occurrences="5">
@ -4914,6 +4935,9 @@
<NullableReturnStatement occurrences="1"> <NullableReturnStatement occurrences="1">
<code>$this-&gt;backend</code> <code>$this-&gt;backend</code>
</NullableReturnStatement> </NullableReturnStatement>
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this-&gt;displayName)</code>
</RedundantPropertyInitializationCheck>
<TooManyArguments occurrences="5"> <TooManyArguments occurrences="5">
<code>dispatch</code> <code>dispatch</code>
<code>dispatch</code> <code>dispatch</code>
@ -5123,6 +5147,11 @@
<code>$column</code> <code>$column</code>
</NullableReturnStatement> </NullableReturnStatement>
</file> </file>
<file src="lib/public/AppFramework/Db/QBMapper.php">
<RedundantCast occurrences="1">
<code>(int)$qb-&gt;getLastInsertId()</code>
</RedundantCast>
</file>
<file src="lib/public/AppFramework/Http/JSONResponse.php"> <file src="lib/public/AppFramework/Http/JSONResponse.php">
<InvalidReturnStatement occurrences="1"> <InvalidReturnStatement occurrences="1">
<code>$this-&gt;data</code> <code>$this-&gt;data</code>