diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-19 18:19:34 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-26 18:13:03 +0200 |
commit | 7cdccd058f98a5e4164fc314f06f62fd8dfcd73c (patch) | |
tree | 948927053d2d1b06f9fa27e7f2c897ac922181e1 /build | |
parent | 256a8d8903ef3a81a425f417c0eb626f42036a25 (diff) | |
download | nextcloud-server-7cdccd058f98a5e4164fc314f06f62fd8dfcd73c.tar.gz nextcloud-server-7cdccd058f98a5e4164fc314f06f62fd8dfcd73c.zip |
fix(Storage): Fix IStorage return types
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'build')
-rw-r--r-- | build/psalm-baseline.xml | 47 |
1 files changed, 3 insertions, 44 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 3271f8d9a51..c093a8792de 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -935,9 +935,6 @@ <InvalidNullableReturnType> <code><![CDATA[ICacheEntry]]></code> </InvalidNullableReturnType> - <InvalidReturnStatement> - <code><![CDATA[new FailedCache()]]></code> - </InvalidReturnStatement> <NullableReturnStatement> <code><![CDATA[$this->sourceRootInfo]]></code> </NullableReturnStatement> @@ -2099,10 +2096,6 @@ <code><![CDATA[!$permissions]]></code> <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)]]></code> </InvalidOperand> - <NoInterfaceProperties> - <code><![CDATA[$storage->scanner]]></code> - <code><![CDATA[$storage->scanner]]></code> - </NoInterfaceProperties> </file> <file src="lib/private/Files/Storage/DAV.php"> <InvalidClass> @@ -2116,16 +2109,6 @@ <code><![CDATA[fopen]]></code> </InvalidReturnType> </file> - <file src="lib/private/Files/Storage/FailedStorage.php"> - <InvalidReturnStatement> - <code><![CDATA[new FailedCache()]]></code> - <code><![CDATA[true]]></code> - </InvalidReturnStatement> - <InvalidReturnType> - <code><![CDATA[getCache]]></code> - <code><![CDATA[verifyPath]]></code> - </InvalidReturnType> - </file> <file src="lib/private/Files/Storage/Local.php"> <TypeDoesNotContainNull> <code><![CDATA[$space === false || is_null($space)]]></code> @@ -2169,16 +2152,12 @@ </file> <file src="lib/private/Files/Storage/Wrapper/Encryption.php"> <InvalidOperand> - <code><![CDATA[$result]]></code> - <code><![CDATA[$result]]></code> <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)]]></code> </InvalidOperand> <InvalidReturnStatement> - <code><![CDATA[$newUnencryptedSize]]></code> <code><![CDATA[$result]]></code> </InvalidReturnStatement> <InvalidReturnType> - <code><![CDATA[bool]]></code> <code><![CDATA[int]]></code> </InvalidReturnType> <InvalidScalarArgument> @@ -2190,17 +2169,11 @@ <InvalidReturnStatement> <code><![CDATA[$this->getWrapperStorage()->filetype($this->getUnjailedPath($path))]]></code> </InvalidReturnStatement> - <InvalidReturnType> - <code><![CDATA[bool]]></code> - </InvalidReturnType> + <InvalidReturnType/> </file> <file src="lib/private/Files/Storage/Wrapper/Wrapper.php"> - <InvalidReturnStatement> - <code><![CDATA[$this->getWrapperStorage()->test()]]></code> - </InvalidReturnStatement> - <InvalidReturnType> - <code><![CDATA[true]]></code> - </InvalidReturnType> + <InvalidReturnStatement/> + <InvalidReturnType/> </file> <file src="lib/private/Files/Stream/SeekableHttpStream.php"> <InvalidReturnType> @@ -2370,20 +2343,6 @@ </NullableReturnStatement> </file> <file src="lib/private/Lockdown/Filesystem/NullStorage.php"> - <InvalidNullableReturnType> - <code><![CDATA[getPermissions]]></code> - </InvalidNullableReturnType> - <InvalidReturnStatement> - <code><![CDATA[new IteratorDirectory([])]]></code> - <code><![CDATA[new NullCache()]]></code> - </InvalidReturnStatement> - <InvalidReturnType> - <code><![CDATA[getCache]]></code> - <code><![CDATA[opendir]]></code> - </InvalidReturnType> - <NullableReturnStatement> - <code><![CDATA[null]]></code> - </NullableReturnStatement> <TooManyArguments> <code><![CDATA[new IteratorDirectory([])]]></code> </TooManyArguments> |