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 $passPhrase
* @param string $cipher * @param string $cipher
* @param int $version * @param int $version
* @param int $position * @param int|string $position
* @return string * @return string
* @throws DecryptionFailedException * @throws DecryptionFailedException
*/ */

View File

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

View File

@ -1130,7 +1130,7 @@
<FalsableReturnStatement occurrences="1"> <FalsableReturnStatement occurrences="1">
<code>$result</code> <code>$result</code>
</FalsableReturnStatement> </FalsableReturnStatement>
<ImplementedParamTypeMismatch occurrences="3"> <ImplementedParamTypeMismatch occurrences="2">
<code>$position</code> <code>$position</code>
<code>$position</code> <code>$position</code>
<code>$position</code> <code>$position</code>
@ -2418,10 +2418,11 @@
<InvalidReturnType occurrences="1"> <InvalidReturnType occurrences="1">
<code>string[]</code> <code>string[]</code>
</InvalidReturnType> </InvalidReturnType>
<InvalidScalarArgument occurrences="3"> <InvalidScalarArgument occurrences="4">
<code>$key</code>
<code>$key</code>
<code>$e-&gt;getCode()</code> <code>$e-&gt;getCode()</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>
@ -6014,6 +6015,11 @@
<code>'DateTimeFormatter'</code> <code>'DateTimeFormatter'</code>
</UndefinedClass> </UndefinedClass>
</file> </file>
<file src="lib/private/Files/Stream/Encryption.php">
<UndefinedInterfaceMethod occurrences="1">
<code>$cacheEntry</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/public/AppFramework/ApiController.php"> <file src="lib/public/AppFramework/ApiController.php">
<NoInterfaceProperties occurrences="1"> <NoInterfaceProperties occurrences="1">
<code>$this-&gt;request-&gt;server</code> <code>$this-&gt;request-&gt;server</code>

View File

@ -102,7 +102,7 @@ interface IEncryptionModule {
* decrypt data * decrypt data
* *
* @param string $data you want to decrypt * @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 * @return mixed decrypted data
* *