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

[stable20] Update psalm baseline #25876

Merged
merged 3 commits into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/encryption/lib/Crypto/Crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ protected function isValidPrivateKey($plainKey) {
* @param string $passPhrase
* @param string $cipher
* @param int $version
* @param int $position
* @param int|string $position
* @return string
* @throws DecryptionFailedException
*/
Expand Down
2 changes: 1 addition & 1 deletion apps/encryption/lib/Crypto/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public function encrypt($data, $position = 0) {
* decrypt data
*
* @param string $data you want to decrypt
* @param int $position
* @param int|string $position
* @return string decrypted data
* @throws DecryptionFailedException
*/
Expand Down
42 changes: 9 additions & 33 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,6 @@
<code>string[]</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="8">
<code>null</code>
<code>$this-&gt;circleToPrincipal($name)</code>
<code>null</code>
<code>null</code>
<code>null</code>
Expand Down Expand Up @@ -1132,7 +1130,7 @@
<FalsableReturnStatement occurrences="1">
<code>$result</code>
</FalsableReturnStatement>
<ImplementedParamTypeMismatch occurrences="3">
<ImplementedParamTypeMismatch occurrences="2">
<code>$position</code>
<code>$position</code>
<code>$position</code>
Expand Down Expand Up @@ -1230,7 +1228,6 @@
<code>bool</code>
<code>bool</code>
<code>bool</code>
<code>bool</code>
</InvalidReturnType>
</file>
<file src="apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php">
Expand Down Expand Up @@ -2327,10 +2324,6 @@
<InvalidScalarArgument occurrences="1">
<code>(int)$cacheBusterKey+1</code>
</InvalidScalarArgument>
<NullArgument occurrences="2">
<code>null</code>
<code>null</code>
</NullArgument>
</file>
<file src="apps/theming/lib/Util.php">
<InvalidReturnStatement occurrences="1">
Expand Down Expand Up @@ -2426,10 +2419,10 @@
<code>string[]</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="4">
<code>[$attr =&gt; $result['values']]</code>
<code>$e-&gt;getCode()</code>
<code>$key</code>
<code>$key</code>
<code>$e-&gt;getCode()</code>
<code>[$attr =&gt; $result['values']]</code>
</InvalidScalarArgument>
<NullArgument occurrences="1">
<code>$cookie</code>
Expand All @@ -2450,9 +2443,6 @@
<code>!is_null($attr) &amp;&amp; !is_array($attr)</code>
<code>isset($ldapRecord[$this-&gt;connection-&gt;$uuidAttr])</code>
</TypeDoesNotContainType>
<UndefinedVariable occurrences="1">
<code>$uidsByDn</code>
</UndefinedVariable>
</file>
<file src="apps/user_ldap/lib/AppInfo/Application.php">
<InvalidArgument occurrences="1">
Expand Down Expand Up @@ -2481,8 +2471,7 @@
<ParadoxicalCondition occurrences="1"/>
</file>
<file src="apps/user_ldap/lib/Group_LDAP.php">
<InvalidArgument occurrences="2">
<code>'dn'</code>
<InvalidArgument occurrences="1">
<code>$this-&gt;cachedGroupsByMember[$uid]</code>
</InvalidArgument>
<InvalidPropertyAssignmentValue occurrences="5">
Expand Down Expand Up @@ -3105,7 +3094,6 @@
<file src="core/routes.php">
<InvalidScope occurrences="2">
<code>$this</code>
<code>$this</code>
</InvalidScope>
</file>
<file src="core/templates/layout.public.php">
Expand Down Expand Up @@ -3660,9 +3648,6 @@
</NullableReturnStatement>
</file>
<file src="lib/private/ContactsManager.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>IAddressBook[]</code>
</ImplementedReturnTypeMismatch>
<InvalidNullableReturnType occurrences="3">
<code>bool</code>
<code>array</code>
Expand Down Expand Up @@ -4772,14 +4757,6 @@
<code>true</code>
</InvalidReturnType>
</file>
<file src="lib/private/Files/Stream/Encryption.php">
<InvalidScalarArgument occurrences="1">
<code>$position</code>
</InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>offsetGet</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Stream/SeekableHttpStream.php">
<FalsableReturnStatement occurrences="3">
<code>false</code>
Expand Down Expand Up @@ -5514,7 +5491,6 @@
<code>$data</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="2">
<code>$this-&gt;shareApiLinkDefaultExpireDays()</code>
<code>$this-&gt;shareApiLinkDefaultExpireDays()</code>
<code>$id</code>
</InvalidScalarArgument>
Expand Down Expand Up @@ -6039,6 +6015,11 @@
<code>'DateTimeFormatter'</code>
</UndefinedClass>
</file>
<file src="lib/private/Files/Stream/Encryption.php">
<UndefinedInterfaceMethod occurrences="1">
<code>$cacheEntry</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/public/AppFramework/ApiController.php">
<NoInterfaceProperties occurrences="1">
<code>$this-&gt;request-&gt;server</code>
Expand Down Expand Up @@ -6093,11 +6074,6 @@
<code>$jobList</code>
</MoreSpecificImplementedParamType>
</file>
<file src="lib/public/Contacts/IManager.php">
<UndefinedDocblockClass occurrences="1">
<code>IAddressBook[]</code>
</UndefinedDocblockClass>
</file>
<file src="lib/public/Dashboard/Model/WidgetTemplate.php">
<InvalidNullableReturnType occurrences="1">
<code>WidgetSetting</code>
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Encryption/IEncryptionModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function encrypt($data, $position);
* decrypt data
*
* @param string $data you want to decrypt
* @param string $position position of the block we want to decrypt
* @param int|string $position position of the block we want to decrypt
*
* @return mixed decrypted data
*
Expand Down