Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable23] Update psalm-baseline.xml #32795

Merged
merged 1 commit into from
Jun 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 8 additions & 161 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1707,11 +1707,6 @@
<code>dispatch</code>
</TooManyArguments>
</file>
<file src="apps/files_trashbin/lib/Hooks.php">
<InvalidScalarArgument occurrences="1">
<code>$user</code>
</InvalidScalarArgument>
</file>
<file src="apps/files_trashbin/lib/Sabre/AbstractTrash.php">
<InvalidNullableReturnType occurrences="1">
<code>int</code>
Expand Down Expand Up @@ -1782,12 +1777,9 @@
<FalsableReturnStatement occurrences="1">
<code>false</code>
</FalsableReturnStatement>
<InvalidScalarArgument occurrences="5">
<InvalidScalarArgument occurrences="2">
<code>$timestamp</code>
<code>$timestamp</code>
<code>$uid</code>
<code>$user</code>
<code>$user</code>
</InvalidScalarArgument>
</file>
<file src="apps/files_versions/appinfo/routes.php">
Expand Down Expand Up @@ -1818,9 +1810,8 @@
</UndefinedFunction>
</file>
<file src="apps/files_versions/lib/Storage.php">
<InvalidScalarArgument occurrences="2">
<InvalidScalarArgument occurrences="1">
<code>$timestamp</code>
<code>$uid</code>
</InvalidScalarArgument>
</file>
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
Expand Down Expand Up @@ -1852,9 +1843,6 @@
<InvalidArgument occurrences="1">
<code>AppPasswordCreatedActivityListener::class</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="1">
<code>\OC_User::getUser()</code>
</InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>getSettingsManager</code>
</UndefinedInterfaceMethod>
Expand Down Expand Up @@ -1906,11 +1894,6 @@
<code>null</code>
</NullArgument>
</file>
<file src="apps/settings/lib/Settings/Personal/PersonalInfo.php">
<InvalidScalarArgument occurrences="1">
<code>$uid</code>
</InvalidScalarArgument>
</file>
<file src="apps/settings/lib/SetupChecks/CheckUserCertificates.php">
<InvalidArgument occurrences="1">
<code>false</code>
Expand Down Expand Up @@ -2038,18 +2021,14 @@
<FalsableReturnStatement occurrences="1">
<code>$this-&gt;countUsers($filter)</code>
</FalsableReturnStatement>
<InvalidArgument occurrences="1">
<code>$record</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="2">
<code>$uuid</code>
<code>$values</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>string[]</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
<code>$e-&gt;getCode()</code>
<InvalidScalarArgument occurrences="2">
<code>$key</code>
<code>$key</code>
</InvalidScalarArgument>
Expand Down Expand Up @@ -2077,16 +2056,7 @@
<code>dispatch</code>
</TooManyArguments>
</file>
<file src="apps/user_ldap/lib/Configuration.php">
<InvalidScalarArgument occurrences="1">
<code>time()</code>
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/Connection.php">
<InvalidScalarArgument occurrences="2">
<code>LDAP_OPT_PROTOCOL_VERSION</code>
<code>LDAP_OPT_REFERRALS</code>
</InvalidScalarArgument>
<ParadoxicalCondition occurrences="1"/>
</file>
<file src="apps/user_ldap/lib/Group_LDAP.php">
Expand Down Expand Up @@ -2130,13 +2100,6 @@
<code>Resource</code>
</UndefinedDocblockClass>
</file>
<file src="apps/user_ldap/lib/Jobs/CleanUp.php">
<InvalidScalarArgument occurrences="3">
<code>$newOffset</code>
<code>0</code>
<code>50</code>
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/Jobs/Sync.php">
<InvalidOperand occurrences="2">
<code>$i</code>
Expand Down Expand Up @@ -2166,68 +2129,12 @@
<code>3600</code>
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/LDAP.php">
<ImplementedParamTypeMismatch occurrences="22">
<code>$baseDN</code>
<code>$baseDN</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$resource</code>
<code>$result</code>
<code>$result</code>
<code>$result</code>
<code>$result</code>
<code>$result</code>
</ImplementedParamTypeMismatch>
<InvalidArgument occurrences="1">
<code>$baseDN</code>
</InvalidArgument>
<LessSpecificImplementedReturnType occurrences="13">
<code>array|mixed</code>
<code>array|mixed</code>
<code>bool|mixed</code>
<code>bool|mixed</code>
<code>bool|mixed</code>
<code>mixed</code>
<code>mixed</code>
<code>mixed</code>
<code>mixed</code>
<code>mixed</code>
<code>mixed|string</code>
<code>mixed|true</code>
<code>mixed|true</code>
</LessSpecificImplementedReturnType>
<UndefinedDocblockClass occurrences="1">
<code>Resource</code>
</UndefinedDocblockClass>
</file>
<file src="apps/user_ldap/lib/LogWrapper.php">
<InvalidReturnType occurrences="1">
<code>bool</code>
</InvalidReturnType>
</file>
<file src="apps/user_ldap/lib/Mapping/AbstractMapping.php">
<InvalidOperand occurrences="1">
<code>$isUnmapped</code>
</InvalidOperand>
<InvalidReturnStatement occurrences="1">
<code>$result</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>bool</code>
</InvalidReturnType>
<RedundantCondition occurrences="1">
<code>isset($qb)</code>
</RedundantCondition>
Expand Down Expand Up @@ -2256,8 +2163,7 @@
<code>null</code>
<code>null</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
<code>$this-&gt;getHomePath($ldapEntry[$attr][0])</code>
<InvalidScalarArgument occurrences="2">
<code>1</code>
<code>true</code>
</InvalidScalarArgument>
Expand All @@ -2266,9 +2172,6 @@
<ImplementedReturnTypeMismatch occurrences="1">
<code>string|false</code>
</ImplementedReturnTypeMismatch>
<InvalidScalarArgument occurrences="1">
<code>$path</code>
</InvalidScalarArgument>
<MoreSpecificImplementedParamType occurrences="2">
<code>$limit</code>
<code>$offset</code>
Expand Down Expand Up @@ -2301,15 +2204,9 @@
<code>private function detectGroupMemberAssoc() {</code>
<code>private function getAttributeValuesFromEntry($result, $attribute, &amp;$known) {</code>
</InvalidDocblock>
<InvalidScalarArgument occurrences="8">
<InvalidScalarArgument occurrences="2">
<code>$port</code>
<code>$port</code>
<code>LDAP_OPT_NETWORK_TIMEOUT</code>
<code>LDAP_OPT_NETWORK_TIMEOUT</code>
<code>LDAP_OPT_PROTOCOL_VERSION</code>
<code>LDAP_OPT_PROTOCOL_VERSION</code>
<code>LDAP_OPT_REFERRALS</code>
<code>LDAP_OPT_REFERRALS</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="1">
<code>!isset($item['cn']) &amp;&amp; !is_array($item['cn'])</code>
Expand Down Expand Up @@ -3052,23 +2949,12 @@
<code>$userId</code>
</ParamNameMismatch>
</file>
<file src="lib/private/Avatar/GuestAvatar.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>InMemoryFile</code>
</ImplementedReturnTypeMismatch>
</file>
<file src="lib/private/Avatar/PlaceholderAvatar.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>ISimpleFile</code>
</ImplementedReturnTypeMismatch>
<InvalidScalarArgument occurrences="1">
<code>$data</code>
</InvalidScalarArgument>
</file>
<file src="lib/private/Avatar/UserAvatar.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>ISimpleFile</code>
</ImplementedReturnTypeMismatch>
<InvalidScalarArgument occurrences="3">
<code>$data</code>
<code>$data</code>
Expand Down Expand Up @@ -3512,11 +3398,6 @@
<InvalidReturnType occurrences="1">
<code>string</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
<code>$user</code>
<code>$user</code>
<code>\OC_User::getUser()</code>
</InvalidScalarArgument>
<NullableReturnStatement occurrences="1">
<code>null</code>
</NullableReturnStatement>
Expand Down Expand Up @@ -3758,9 +3639,6 @@
<ImplementedReturnTypeMismatch occurrences="1">
<code>string|false</code>
</ImplementedReturnTypeMismatch>
<InvalidNullableReturnType occurrences="1">
<code>array</code>
</InvalidNullableReturnType>
<InvalidOperand occurrences="2">
<code>!$permissions</code>
<code>$this-&gt;copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)</code>
Expand All @@ -3775,9 +3653,6 @@
<code>$storage-&gt;updater</code>
<code>$storage-&gt;updater</code>
</NoInterfaceProperties>
<NullableReturnStatement occurrences="1">
<code>$this-&gt;getStorageCache()-&gt;getAvailability()</code>
</NullableReturnStatement>
</file>
<file src="lib/private/Files/Storage/DAV.php">
<InvalidClass occurrences="2">
Expand Down Expand Up @@ -4059,10 +3934,9 @@
<InvalidReturnType occurrences="1">
<code>\OC\Files\Mount\MountPoint</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
<InvalidScalarArgument occurrences="2">
<code>$fileId</code>
<code>$mtime</code>
<code>$user</code>
</InvalidScalarArgument>
<NullableReturnStatement occurrences="6">
<code>$mount</code>
Expand All @@ -4072,13 +3946,9 @@
<code>null</code>
<code>null</code>
</NullableReturnStatement>
<RedundantCondition occurrences="7">
<RedundantCondition occurrences="3">
<code>$data</code>
<code>$data</code>
<code>$result</code>
<code>$result &amp;&amp; in_array('delete', $hooks) and $result</code>
<code>Constants::PERMISSION_READ</code>
<code>Constants::PERMISSION_READ</code>
<code>is_resource($source)</code>
</RedundantCondition>
<UndefinedDocblockClass occurrences="2">
Expand Down Expand Up @@ -4301,11 +4171,6 @@
<code>mixed</code>
</LessSpecificImplementedReturnType>
</file>
<file src="lib/private/Memcache/Memcached.php">
<TypeDoesNotContainType occurrences="1">
<code>\Memcached::HAVE_IGBINARY</code>
</TypeDoesNotContainType>
</file>
<file src="lib/private/Memcache/Redis.php">
<InvalidMethodCall occurrences="2">
<code>exec</code>
Expand Down Expand Up @@ -4338,10 +4203,6 @@
<InvalidNullableReturnType occurrences="1">
<code>ISimpleFile</code>
</InvalidNullableReturnType>
<InvalidScalarArgument occurrences="2">
<code>$file-&gt;getId()</code>
<code>$file-&gt;getId()</code>
</InvalidScalarArgument>
<MismatchingDocblockParamType occurrences="1">
<code>ISimpleFile</code>
</MismatchingDocblockParamType>
Expand Down Expand Up @@ -4596,10 +4457,6 @@
<InvalidOperand occurrences="1">
<code>!self::isResharingAllowed()</code>
</InvalidOperand>
<InvalidScalarArgument occurrences="2">
<code>\OC_User::getUser()</code>
<code>\OC_User::getUser()</code>
</InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="2">
<code>getParents</code>
<code>getParents</code>
Expand Down Expand Up @@ -4800,10 +4657,9 @@
<code>string</code>
<code>string</code>
</InvalidParamDefault>
<InvalidScalarArgument occurrences="3">
<InvalidScalarArgument occurrences="2">
<code>$appName</code>
<code>$appName</code>
<code>\OC_User::getUser()</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="1">
<code>Util::addScript('dist/unified-search', null, true)</code>
Expand Down Expand Up @@ -5040,11 +4896,6 @@
<code>$isWritable</code>
</RedundantCondition>
</file>
<file src="lib/private/legacy/OC_JSON.php">
<InvalidScalarArgument occurrences="1">
<code>OC_User::getUser()</code>
</InvalidScalarArgument>
</file>
<file src="lib/private/legacy/OC_User.php">
<UndefinedClass occurrences="1">
<code>\Test\Util\User\Dummy</code>
Expand All @@ -5061,10 +4912,6 @@
<InvalidReturnType occurrences="1">
<code>float</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="2">
<code>$user</code>
<code>OC_User::getUser()</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="1">
<code>is_string($expected)</code>
</RedundantCondition>
Expand Down