Update and fix baseline

Backported some bits of stable21 to make Psalm happy.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Vincent Petry 2021-03-17 12:01:19 +01:00
parent f80f7a33e8
commit 67e0b194b6
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
4 changed files with 13 additions and 7 deletions

View File

@ -459,7 +459,7 @@ class Crypt {
* @param string $passPhrase
* @param string $cipher
* @param int $version
* @param int $position
* @param int|string $position
* @return string
* @throws DecryptionFailedException
*/

View File

@ -360,7 +360,7 @@ class Encryption implements IEncryptionModule {
* decrypt data
*
* @param string $data you want to decrypt
* @param int $position
* @param int|string $position
* @return string decrypted data
* @throws DecryptionFailedException
*/

View File

@ -1130,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>
@ -2418,10 +2418,11 @@
<InvalidReturnType occurrences="1">
<code>string[]</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
<code>$key</code>
<code>$key</code>
<InvalidScalarArgument occurrences="4">
<code>$e-&gt;getCode()</code>
<code>$key</code>
<code>$key</code>
<code>[$attr =&gt; $result['values']]</code>
</InvalidScalarArgument>
<NullArgument occurrences="1">
<code>$cookie</code>
@ -6014,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>

View File

@ -102,7 +102,7 @@ interface IEncryptionModule {
* 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
*