diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-14 15:26:15 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-06-22 10:25:17 +0200 |
commit | 3598ec40285b88d4f8f03a4db8d3a085a521d2df (patch) | |
tree | c0a29d567de0539b6e6e97bf9f0e2ce79bbc5ac0 /build | |
parent | de82d4f67ca8d12a0209598f9cdd55302d546524 (diff) | |
download | nextcloud-server-3598ec40285b88d4f8f03a4db8d3a085a521d2df.tar.gz nextcloud-server-3598ec40285b88d4f8f03a4db8d3a085a521d2df.zip |
Add typing to Sharing Backend
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'build')
-rw-r--r-- | build/psalm-baseline.xml | 57 |
1 files changed, 2 insertions, 55 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 1e27a2496c7..e89253b8870 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -136,16 +136,6 @@ </ParamNameMismatch> </file> <file src="apps/dav/lib/CalDAV/CalDavBackend.php"> - <InvalidArgument occurrences="8"> - <code>'\OCA\DAV\CalDAV\CalDavBackend::createCachedCalendarObject'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::createSubscription'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCachedCalendarObject'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteSubscription'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::publishCalendar'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCachedCalendarObject'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::updateShares'</code> - <code>'\OCA\DAV\CalDAV\CalDavBackend::updateSubscription'</code> - </InvalidArgument> <InvalidNullableReturnType occurrences="2"> <code>array</code> <code>array</code> @@ -161,16 +151,6 @@ <RedundantCast occurrences="1"> <code>(int)$calendarId</code> </RedundantCast> - <TooManyArguments occurrences="8"> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - </TooManyArguments> <UndefinedFunction occurrences="4"> <code>Uri\split($principalUri)</code> <code>Uri\split($row['principaluri'])</code> @@ -341,9 +321,6 @@ </InvalidArgument> </file> <file src="apps/dav/lib/CardDAV/AddressBookImpl.php"> - <InvalidArgument occurrences="1"> - <code>$id</code> - </InvalidArgument> <InvalidScalarArgument occurrences="2"> <code>$this->getKey()</code> <code>$this->getKey()</code> @@ -358,16 +335,6 @@ <FalsableReturnStatement occurrences="1"> <code>false</code> </FalsableReturnStatement> - <InvalidArgument occurrences="3"> - <code>'\OCA\DAV\CardDAV\CardDavBackend::createCard'</code> - <code>'\OCA\DAV\CardDAV\CardDavBackend::deleteCard'</code> - <code>'\OCA\DAV\CardDAV\CardDavBackend::updateCard'</code> - </InvalidArgument> - <TooManyArguments occurrences="3"> - <code>dispatch</code> - <code>dispatch</code> - <code>dispatch</code> - </TooManyArguments> <TypeDoesNotContainType occurrences="1"> <code>$addressBooks[$row['id']][$readOnlyPropertyName] === 0</code> </TypeDoesNotContainType> @@ -672,14 +639,6 @@ <code>null</code> </NullableReturnStatement> </file> - <file src="apps/dav/lib/DAV/Sharing/Backend.php"> - <InvalidArrayOffset occurrences="4"> - <code>$element['href']</code> - <code>$element['href']</code> - <code>$element['href']</code> - <code>$element['readOnly']</code> - </InvalidArrayOffset> - </file> <file src="apps/dav/lib/DAV/SystemPrincipalBackend.php"> <InvalidNullableReturnType occurrences="1"> <code>array</code> @@ -889,7 +848,6 @@ </RedundantCondition> <TypeDoesNotContainType occurrences="2"> <code>get_class($res) === 'OpenSSLAsymmetricKey'</code> - <code>is_object($res)</code> </TypeDoesNotContainType> </file> <file src="apps/encryption/lib/Crypto/EncryptAll.php"> @@ -1732,14 +1690,6 @@ <code>0</code> </InvalidScalarArgument> </file> - <file src="apps/updatenotification/lib/ResetTokenBackgroundJob.php"> - <InvalidOperand occurrences="1"> - <code>$this->config->getAppValue('core', 'updater.secret.created', $this->timeFactory->getTime())</code> - </InvalidOperand> - <InvalidScalarArgument occurrences="1"> - <code>$this->timeFactory->getTime()</code> - </InvalidScalarArgument> - </file> <file src="apps/updatenotification/lib/Settings/Admin.php"> <InvalidScalarArgument occurrences="1"> <code>$lastUpdateCheckTimestamp</code> @@ -3366,16 +3316,13 @@ <code>$result</code> <code>$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)</code> </InvalidOperand> - <InvalidReturnStatement occurrences="6"> + <InvalidReturnStatement occurrences="4"> <code>$newUnencryptedSize</code> <code>$result</code> - <code>$stat</code> <code>$this->storage->file_get_contents($path)</code> <code>$this->storage->filesize($path)</code> - <code>$this->storage->getLocalFile($path)</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="5"> - <code>array</code> + <InvalidReturnType occurrences="3"> <code>bool</code> <code>int</code> <code>string</code> |