Skip to content

Commit 6e2d962

Browse files
Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
1 parent c7d3f14 commit 6e2d962

File tree

1 file changed

+8
-156
lines changed

1 file changed

+8
-156
lines changed

build/psalm-baseline.xml

Lines changed: 8 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,11 +1723,6 @@
17231723
<code>$user</code>
17241724
</InvalidScalarArgument>
17251725
</file>
1726-
<file src="apps/files_trashbin/lib/Hooks.php">
1727-
<InvalidScalarArgument occurrences="1">
1728-
<code>$user</code>
1729-
</InvalidScalarArgument>
1730-
</file>
17311726
<file src="apps/files_trashbin/lib/Sabre/AbstractTrash.php">
17321727
<InvalidNullableReturnType occurrences="1">
17331728
<code>int</code>
@@ -1798,12 +1793,9 @@
17981793
<FalsableReturnStatement occurrences="1">
17991794
<code>false</code>
18001795
</FalsableReturnStatement>
1801-
<InvalidScalarArgument occurrences="5">
1796+
<InvalidScalarArgument occurrences="2">
18021797
<code>$timestamp</code>
18031798
<code>$timestamp</code>
1804-
<code>$uid</code>
1805-
<code>$user</code>
1806-
<code>$user</code>
18071799
</InvalidScalarArgument>
18081800
</file>
18091801
<file src="apps/files_versions/appinfo/routes.php">
@@ -1842,9 +1834,8 @@
18421834
<InvalidArgument occurrences="1">
18431835
<code>'OCA\Files_Versions::createVersion'</code>
18441836
</InvalidArgument>
1845-
<InvalidScalarArgument occurrences="2">
1837+
<InvalidScalarArgument occurrences="1">
18461838
<code>$timestamp</code>
1847-
<code>$uid</code>
18481839
</InvalidScalarArgument>
18491840
<TooManyArguments occurrences="2">
18501841
<code>dispatch</code>
@@ -1880,9 +1871,6 @@
18801871
<InvalidArgument occurrences="1">
18811872
<code>AppPasswordCreatedActivityListener::class</code>
18821873
</InvalidArgument>
1883-
<InvalidScalarArgument occurrences="1">
1884-
<code>\OC_User::getUser()</code>
1885-
</InvalidScalarArgument>
18861874
<UndefinedInterfaceMethod occurrences="1">
18871875
<code>getSettingsManager</code>
18881876
</UndefinedInterfaceMethod>
@@ -1940,9 +1928,6 @@
19401928
</NullArgument>
19411929
</file>
19421930
<file src="apps/settings/lib/Settings/Personal/PersonalInfo.php">
1943-
<InvalidScalarArgument occurrences="1">
1944-
<code>$uid</code>
1945-
</InvalidScalarArgument>
19461931
<UndefinedInterfaceMethod occurrences="1">
19471932
<code>getLanguages</code>
19481933
</UndefinedInterfaceMethod>
@@ -2080,18 +2065,14 @@
20802065
<FalsableReturnStatement occurrences="1">
20812066
<code>$this-&gt;countUsers($filter)</code>
20822067
</FalsableReturnStatement>
2083-
<InvalidArgument occurrences="1">
2084-
<code>$record</code>
2085-
</InvalidArgument>
20862068
<InvalidReturnStatement occurrences="2">
20872069
<code>$uuid</code>
20882070
<code>$values</code>
20892071
</InvalidReturnStatement>
20902072
<InvalidReturnType occurrences="1">
20912073
<code>string[]</code>
20922074
</InvalidReturnType>
2093-
<InvalidScalarArgument occurrences="3">
2094-
<code>$e-&gt;getCode()</code>
2075+
<InvalidScalarArgument occurrences="2">
20952076
<code>$key</code>
20962077
<code>$key</code>
20972078
</InvalidScalarArgument>
@@ -2119,16 +2100,7 @@
21192100
<code>dispatch</code>
21202101
</TooManyArguments>
21212102
</file>
2122-
<file src="apps/user_ldap/lib/Configuration.php">
2123-
<InvalidScalarArgument occurrences="1">
2124-
<code>time()</code>
2125-
</InvalidScalarArgument>
2126-
</file>
21272103
<file src="apps/user_ldap/lib/Connection.php">
2128-
<InvalidScalarArgument occurrences="2">
2129-
<code>LDAP_OPT_PROTOCOL_VERSION</code>
2130-
<code>LDAP_OPT_REFERRALS</code>
2131-
</InvalidScalarArgument>
21322104
<ParadoxicalCondition occurrences="1"/>
21332105
</file>
21342106
<file src="apps/user_ldap/lib/Group_LDAP.php">
@@ -2172,13 +2144,6 @@
21722144
<code>Resource</code>
21732145
</UndefinedDocblockClass>
21742146
</file>
2175-
<file src="apps/user_ldap/lib/Jobs/CleanUp.php">
2176-
<InvalidScalarArgument occurrences="3">
2177-
<code>$newOffset</code>
2178-
<code>0</code>
2179-
<code>50</code>
2180-
</InvalidScalarArgument>
2181-
</file>
21822147
<file src="apps/user_ldap/lib/Jobs/Sync.php">
21832148
<InvalidOperand occurrences="2">
21842149
<code>$i</code>
@@ -2208,68 +2173,12 @@
22082173
<code>3600</code>
22092174
</InvalidScalarArgument>
22102175
</file>
2211-
<file src="apps/user_ldap/lib/LDAP.php">
2212-
<ImplementedParamTypeMismatch occurrences="22">
2213-
<code>$baseDN</code>
2214-
<code>$baseDN</code>
2215-
<code>$link</code>
2216-
<code>$link</code>
2217-
<code>$link</code>
2218-
<code>$link</code>
2219-
<code>$link</code>
2220-
<code>$link</code>
2221-
<code>$link</code>
2222-
<code>$link</code>
2223-
<code>$link</code>
2224-
<code>$link</code>
2225-
<code>$link</code>
2226-
<code>$link</code>
2227-
<code>$link</code>
2228-
<code>$link</code>
2229-
<code>$resource</code>
2230-
<code>$result</code>
2231-
<code>$result</code>
2232-
<code>$result</code>
2233-
<code>$result</code>
2234-
<code>$result</code>
2235-
</ImplementedParamTypeMismatch>
2236-
<InvalidArgument occurrences="1">
2237-
<code>$baseDN</code>
2238-
</InvalidArgument>
2239-
<LessSpecificImplementedReturnType occurrences="13">
2240-
<code>array|mixed</code>
2241-
<code>array|mixed</code>
2242-
<code>bool|mixed</code>
2243-
<code>bool|mixed</code>
2244-
<code>bool|mixed</code>
2245-
<code>mixed</code>
2246-
<code>mixed</code>
2247-
<code>mixed</code>
2248-
<code>mixed</code>
2249-
<code>mixed</code>
2250-
<code>mixed|string</code>
2251-
<code>mixed|true</code>
2252-
<code>mixed|true</code>
2253-
</LessSpecificImplementedReturnType>
2254-
<UndefinedDocblockClass occurrences="1">
2255-
<code>Resource</code>
2256-
</UndefinedDocblockClass>
2257-
</file>
22582176
<file src="apps/user_ldap/lib/LogWrapper.php">
22592177
<InvalidReturnType occurrences="1">
22602178
<code>bool</code>
22612179
</InvalidReturnType>
22622180
</file>
22632181
<file src="apps/user_ldap/lib/Mapping/AbstractMapping.php">
2264-
<InvalidOperand occurrences="1">
2265-
<code>$isUnmapped</code>
2266-
</InvalidOperand>
2267-
<InvalidReturnStatement occurrences="1">
2268-
<code>$result</code>
2269-
</InvalidReturnStatement>
2270-
<InvalidReturnType occurrences="1">
2271-
<code>bool</code>
2272-
</InvalidReturnType>
22732182
<RedundantCondition occurrences="1">
22742183
<code>isset($qb)</code>
22752184
</RedundantCondition>
@@ -2298,8 +2207,7 @@
22982207
<code>null</code>
22992208
<code>null</code>
23002209
</InvalidReturnType>
2301-
<InvalidScalarArgument occurrences="3">
2302-
<code>$this-&gt;getHomePath($ldapEntry[$attr][0])</code>
2210+
<InvalidScalarArgument occurrences="2">
23032211
<code>1</code>
23042212
<code>true</code>
23052213
</InvalidScalarArgument>
@@ -2308,9 +2216,6 @@
23082216
<ImplementedReturnTypeMismatch occurrences="1">
23092217
<code>string|false</code>
23102218
</ImplementedReturnTypeMismatch>
2311-
<InvalidScalarArgument occurrences="1">
2312-
<code>$path</code>
2313-
</InvalidScalarArgument>
23142219
<MoreSpecificImplementedParamType occurrences="2">
23152220
<code>$limit</code>
23162221
<code>$offset</code>
@@ -2343,15 +2248,9 @@
23432248
<code>private function detectGroupMemberAssoc() {</code>
23442249
<code>private function getAttributeValuesFromEntry($result, $attribute, &amp;$known) {</code>
23452250
</InvalidDocblock>
2346-
<InvalidScalarArgument occurrences="8">
2251+
<InvalidScalarArgument occurrences="2">
23472252
<code>$port</code>
23482253
<code>$port</code>
2349-
<code>LDAP_OPT_NETWORK_TIMEOUT</code>
2350-
<code>LDAP_OPT_NETWORK_TIMEOUT</code>
2351-
<code>LDAP_OPT_PROTOCOL_VERSION</code>
2352-
<code>LDAP_OPT_PROTOCOL_VERSION</code>
2353-
<code>LDAP_OPT_REFERRALS</code>
2354-
<code>LDAP_OPT_REFERRALS</code>
23552254
</InvalidScalarArgument>
23562255
<RedundantCondition occurrences="1">
23572256
<code>!isset($item['cn']) &amp;&amp; !is_array($item['cn'])</code>
@@ -3101,23 +3000,12 @@
31013000
<code>$userId</code>
31023001
</ParamNameMismatch>
31033002
</file>
3104-
<file src="lib/private/Avatar/GuestAvatar.php">
3105-
<ImplementedReturnTypeMismatch occurrences="1">
3106-
<code>InMemoryFile</code>
3107-
</ImplementedReturnTypeMismatch>
3108-
</file>
31093003
<file src="lib/private/Avatar/PlaceholderAvatar.php">
3110-
<ImplementedReturnTypeMismatch occurrences="1">
3111-
<code>ISimpleFile</code>
3112-
</ImplementedReturnTypeMismatch>
31133004
<InvalidScalarArgument occurrences="1">
31143005
<code>$data</code>
31153006
</InvalidScalarArgument>
31163007
</file>
31173008
<file src="lib/private/Avatar/UserAvatar.php">
3118-
<ImplementedReturnTypeMismatch occurrences="1">
3119-
<code>ISimpleFile</code>
3120-
</ImplementedReturnTypeMismatch>
31213009
<InvalidScalarArgument occurrences="3">
31223010
<code>$data</code>
31233011
<code>$data</code>
@@ -3561,11 +3449,6 @@
35613449
<InvalidReturnType occurrences="1">
35623450
<code>string</code>
35633451
</InvalidReturnType>
3564-
<InvalidScalarArgument occurrences="3">
3565-
<code>$user</code>
3566-
<code>$user</code>
3567-
<code>\OC_User::getUser()</code>
3568-
</InvalidScalarArgument>
35693452
<NullableReturnStatement occurrences="1">
35703453
<code>null</code>
35713454
</NullableReturnStatement>
@@ -4119,10 +4002,9 @@
41194002
<InvalidReturnType occurrences="1">
41204003
<code>\OC\Files\Mount\MountPoint</code>
41214004
</InvalidReturnType>
4122-
<InvalidScalarArgument occurrences="3">
4005+
<InvalidScalarArgument occurrences="2">
41234006
<code>$fileId</code>
41244007
<code>$mtime</code>
4125-
<code>$user</code>
41264008
</InvalidScalarArgument>
41274009
<NullableReturnStatement occurrences="6">
41284010
<code>$mount</code>
@@ -4132,13 +4014,9 @@
41324014
<code>null</code>
41334015
<code>null</code>
41344016
</NullableReturnStatement>
4135-
<RedundantCondition occurrences="7">
4017+
<RedundantCondition occurrences="3">
41364018
<code>$data</code>
41374019
<code>$data</code>
4138-
<code>$result</code>
4139-
<code>$result &amp;&amp; in_array('delete', $hooks) and $result</code>
4140-
<code>Constants::PERMISSION_READ</code>
4141-
<code>Constants::PERMISSION_READ</code>
41424020
<code>is_resource($source)</code>
41434021
</RedundantCondition>
41444022
<UndefinedDocblockClass occurrences="2">
@@ -4362,11 +4240,6 @@
43624240
<code>mixed</code>
43634241
</LessSpecificImplementedReturnType>
43644242
</file>
4365-
<file src="lib/private/Memcache/Memcached.php">
4366-
<TypeDoesNotContainType occurrences="1">
4367-
<code>\Memcached::HAVE_IGBINARY</code>
4368-
</TypeDoesNotContainType>
4369-
</file>
43704243
<file src="lib/private/Memcache/Redis.php">
43714244
<InvalidMethodCall occurrences="2">
43724245
<code>exec</code>
@@ -4396,10 +4269,6 @@
43964269
<InvalidNullableReturnType occurrences="1">
43974270
<code>ISimpleFile</code>
43984271
</InvalidNullableReturnType>
4399-
<InvalidScalarArgument occurrences="2">
4400-
<code>$file-&gt;getId()</code>
4401-
<code>$file-&gt;getId()</code>
4402-
</InvalidScalarArgument>
44034272
<MismatchingDocblockParamType occurrences="1">
44044273
<code>ISimpleFile</code>
44054274
</MismatchingDocblockParamType>
@@ -4439,9 +4308,6 @@
44394308
<code>shell_exec('command -v libreoffice')</code>
44404309
<code>shell_exec('command -v openoffice')</code>
44414310
</ForbiddenCode>
4442-
<ImplicitToStringCast occurrences="1">
4443-
<code>$png</code>
4444-
</ImplicitToStringCast>
44454311
</file>
44464312
<file src="lib/private/Preview/ProviderV1Adapter.php">
44474313
<InvalidReturnStatement occurrences="1">
@@ -4670,10 +4536,6 @@
46704536
<InvalidOperand occurrences="1">
46714537
<code>!self::isResharingAllowed()</code>
46724538
</InvalidOperand>
4673-
<InvalidScalarArgument occurrences="2">
4674-
<code>\OC_User::getUser()</code>
4675-
<code>\OC_User::getUser()</code>
4676-
</InvalidScalarArgument>
46774539
<UndefinedInterfaceMethod occurrences="2">
46784540
<code>getParents</code>
46794541
<code>getParents</code>
@@ -4874,10 +4736,9 @@
48744736
<code>string</code>
48754737
<code>string</code>
48764738
</InvalidParamDefault>
4877-
<InvalidScalarArgument occurrences="3">
4739+
<InvalidScalarArgument occurrences="2">
48784740
<code>$appName</code>
48794741
<code>$appName</code>
4880-
<code>\OC_User::getUser()</code>
48814742
</InvalidScalarArgument>
48824743
<TooManyArguments occurrences="1">
48834744
<code>Util::addScript('dist/unified-search', null, true)</code>
@@ -5126,11 +4987,6 @@
51264987
<code>$isWritable</code>
51274988
</RedundantCondition>
51284989
</file>
5129-
<file src="lib/private/legacy/OC_JSON.php">
5130-
<InvalidScalarArgument occurrences="1">
5131-
<code>OC_User::getUser()</code>
5132-
</InvalidScalarArgument>
5133-
</file>
51344990
<file src="lib/private/legacy/OC_User.php">
51354991
<UndefinedClass occurrences="1">
51364992
<code>\Test\Util\User\Dummy</code>
@@ -5147,10 +5003,6 @@
51475003
<InvalidReturnType occurrences="1">
51485004
<code>float</code>
51495005
</InvalidReturnType>
5150-
<InvalidScalarArgument occurrences="2">
5151-
<code>$user</code>
5152-
<code>OC_User::getUser()</code>
5153-
</InvalidScalarArgument>
51545006
<RedundantCondition occurrences="1">
51555007
<code>is_string($expected)</code>
51565008
</RedundantCondition>

0 commit comments

Comments
 (0)