summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authornextcloud-command <nextcloud-command@users.noreply.github.com>2024-01-30 02:15:09 +0000
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-02-05 11:15:15 +0100
commitee829a302ff3ff0e1d3e00ab15614262cbfdfbf4 (patch)
tree1e31a597c3c3a1f805e40f5ff7d332bac46917ab /build
parent062ca546ee23222137613696606ed54364c48888 (diff)
downloadnextcloud-server-ee829a302ff3ff0e1d3e00ab15614262cbfdfbf4.tar.gz
nextcloud-server-ee829a302ff3ff0e1d3e00ab15614262cbfdfbf4.zip
Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to 'build')
-rw-r--r--build/psalm-baseline.xml121
1 files changed, 5 insertions, 116 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index ba529091482..e5facef71af 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.9.0@8b9ad1eb9e8b7d3101f949291da2b9f7767cd163">
<file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
- <MoreSpecificImplementedParamType>
- <code>$calendarData</code>
- </MoreSpecificImplementedParamType>
+ <MoreSpecificImplementedParamType/>
</file>
<file src="3rdparty/sabre/dav/lib/CalDAV/CalendarHome.php">
<MoreSpecificImplementedParamType>
@@ -16,9 +14,7 @@
</MoreSpecificImplementedParamType>
</file>
<file src="3rdparty/sabre/dav/lib/CardDAV/AddressBook.php">
- <MoreSpecificImplementedParamType>
- <code>$vcardData</code>
- </MoreSpecificImplementedParamType>
+ <MoreSpecificImplementedParamType/>
</file>
<file src="3rdparty/sabre/dav/lib/CardDAV/AddressBookHome.php">
<InvalidPropertyAssignmentValue>
@@ -105,11 +101,6 @@
<code>$baseuri</code>
</UndefinedGlobalVariable>
</file>
- <file src="apps/dav/lib/AppInfo/Application.php">
- <InvalidArgument>
- <code>CalendarDeletionDefaultUpdaterListener::class</code>
- </InvalidArgument>
- </file>
<file src="apps/dav/lib/CalDAV/BirthdayService.php">
<UndefinedMethod>
<code>setDateTime</code>
@@ -122,11 +113,6 @@
<code><![CDATA[$newCalendarData->VEVENT->SUMMARY]]></code>
</UndefinedPropertyFetch>
</file>
- <file src="apps/dav/lib/CalDAV/CachedSubscription.php">
- <ParamNameMismatch>
- <code>$calendarData</code>
- </ParamNameMismatch>
- </file>
<file src="apps/dav/lib/CalDAV/CachedSubscriptionObject.php">
<NullableReturnStatement>
<code><![CDATA[$this->objectData['calendardata']]]></code>
@@ -439,9 +425,6 @@
</InvalidNullableReturnType>
</file>
<file src="apps/dav/lib/CardDAV/PhotoCache.php">
- <InvalidNullableReturnType>
- <code>string</code>
- </InvalidNullableReturnType>
<LessSpecificReturnStatement>
<code><![CDATA[[
'Content-Type' => $type,
@@ -451,23 +434,12 @@
<MoreSpecificReturnType>
<code>false|array{body: string, Content-Type: string}</code>
</MoreSpecificReturnType>
- <NullableReturnStatement>
- <code>$type</code>
- </NullableReturnStatement>
</file>
<file src="apps/dav/lib/CardDAV/Plugin.php">
<ImplementedReturnTypeMismatch>
<code>string|null</code>
</ImplementedReturnTypeMismatch>
</file>
- <file src="apps/dav/lib/CardDAV/SystemAddressbook.php">
- <InvalidNullableReturnType>
- <code>getChanges</code>
- </InvalidNullableReturnType>
- <NullableReturnStatement>
- <code>null</code>
- </NullableReturnStatement>
- </file>
<file src="apps/dav/lib/CardDAV/UserAddressBooks.php">
<InvalidArgument>
<code><![CDATA[$this->principalUri]]></code>
@@ -541,7 +513,6 @@
<file src="apps/dav/lib/Connector/Sabre/FilesReportPlugin.php">
<InvalidArgument>
<code>0</code>
- <code>200</code>
</InvalidArgument>
<InvalidNullableReturnType>
<code>bool</code>
@@ -596,12 +567,6 @@
<code>\OCA\Circles\Api\v1\Circles</code>
</UndefinedClass>
</file>
- <file src="apps/dav/lib/Connector/Sabre/QuotaPlugin.php">
- <UndefinedInterfaceMethod>
- <code>getPath</code>
- <code>getPath</code>
- </UndefinedInterfaceMethod>
- </file>
<file src="apps/dav/lib/Connector/Sabre/ServerFactory.php">
<TooManyArguments>
<code>new \OCA\DAV\Connector\Sabre\QuotaPlugin($view, true)</code>
@@ -973,14 +938,6 @@
<code>IEventListener</code>
</MissingTemplateParam>
</file>
- <file src="apps/federation/lib/TrustedServers.php">
- <LessSpecificReturnStatement>
- <code><![CDATA[$this->dbHandler->getAllServer()]]></code>
- </LessSpecificReturnStatement>
- <MoreSpecificReturnType>
- <code><![CDATA[list<array{id: int, url: string, url_hash: string, shared_secret: string, status: int, sync_token: string}>]]></code>
- </MoreSpecificReturnType>
- </file>
<file src="apps/files/ajax/download.php">
<InvalidArgument>
<code>$files_list</code>
@@ -1378,9 +1335,6 @@
</InvalidReturnType>
</file>
<file src="apps/settings/lib/AppInfo/Application.php">
- <InvalidArgument>
- <code>AppPasswordCreatedActivityListener::class</code>
- </InvalidArgument>
<UndefinedInterfaceMethod>
<code>getSettingsManager</code>
</UndefinedInterfaceMethod>
@@ -1663,9 +1617,6 @@
<InvalidReturnType>
<code>string</code>
</InvalidReturnType>
- <ParamNameMismatch>
- <code>$uid</code>
- </ParamNameMismatch>
</file>
<file src="apps/workflowengine/lib/Listener/LoadAdditionalSettingsScriptsListener.php">
<MissingTemplateParam>
@@ -1908,12 +1859,7 @@
</InvalidReturnType>
</file>
<file src="lib/private/AppConfig.php">
- <FalsableReturnStatement>
- <code>$values</code>
- </FalsableReturnStatement>
- <NullableReturnStatement>
- <code>$default</code>
- </NullableReturnStatement>
+ <NullableReturnStatement/>
</file>
<file src="lib/private/AppFramework/Bootstrap/Coordinator.php">
<InvalidPropertyAssignmentValue>
@@ -1934,7 +1880,6 @@
</InvalidReturnStatement>
<InvalidReturnType>
<code>\OCP\IServerContainer</code>
- <code>mixed</code>
</InvalidReturnType>
<UndefinedInterfaceMethod>
<code>getAppDataDir</code>
@@ -2016,39 +1961,6 @@
<file src="lib/private/AppFramework/Utility/SimpleContainer.php">
<LessSpecificReturnStatement>
<code><![CDATA[$class->newInstance()]]></code>
- <code><![CDATA[$class->newInstanceArgs(array_map(function (ReflectionParameter $parameter) {
- $parameterType = $parameter->getType();
-
- $resolveName = $parameter->getName();
-
- // try to find out if it is a class or a simple parameter
- if ($parameterType !== null && ($parameterType instanceof ReflectionNamedType) && !$parameterType->isBuiltin()) {
- $resolveName = $parameterType->getName();
- }
-
- try {
- $builtIn = $parameter->hasType() && ($parameter->getType() instanceof ReflectionNamedType)
- && $parameter->getType()->isBuiltin();
- return $this->query($resolveName, !$builtIn);
- } catch (QueryException $e) {
- // Service not found, use the default value when available
- if ($parameter->isDefaultValueAvailable()) {
- return $parameter->getDefaultValue();
- }
-
- if ($parameterType !== null && ($parameterType instanceof ReflectionNamedType) && !$parameterType->isBuiltin()) {
- $resolveName = $parameter->getName();
- try {
- return $this->query($resolveName);
- } catch (QueryException $e2) {
- // don't lose the error we got while trying to query by type
- throw new QueryException($e->getMessage(), (int) $e->getCode(), $e);
- }
- }
-
- throw $e;
- }
- }, $constructor->getParameters()))]]></code>
</LessSpecificReturnStatement>
<MissingTemplateParam>
<code>ArrayAccess</code>
@@ -2154,9 +2066,7 @@
<code>$image</code>
<code>$image</code>
</InvalidArgument>
- <InvalidReturnStatement>
- <code>$image</code>
- </InvalidReturnStatement>
+ <InvalidReturnStatement/>
<InvalidReturnType>
<code>GdImage|false</code>
</InvalidReturnType>
@@ -2215,17 +2125,7 @@
</ParamNameMismatch>
</file>
<file src="lib/private/Command/ClosureJob.php">
- <InvalidArgument>
- <code>[LaravelClosure::class, OpisClosure::class]</code>
- </InvalidArgument>
- <ParamNameMismatch>
- <code>$serializedCallable</code>
- </ParamNameMismatch>
- </file>
- <file src="lib/private/Command/CommandJob.php">
- <ParamNameMismatch>
- <code>$serializedCommand</code>
- </ParamNameMismatch>
+ <InvalidArgument/>
</file>
<file src="lib/private/Comments/Manager.php">
<RedundantCast>
@@ -2881,9 +2781,6 @@
<LessSpecificReturnStatement>
<code>$users</code>
</LessSpecificReturnStatement>
- <MoreSpecificImplementedParamType>
- <code>$user</code>
- </MoreSpecificImplementedParamType>
<MoreSpecificReturnType>
<code>\OC\User\User[]</code>
</MoreSpecificReturnType>
@@ -3168,11 +3065,6 @@
<code>$out</code>
</ParamNameMismatch>
</file>
- <file src="lib/private/Repair/SqliteAutoincrement.php">
- <ParamNameMismatch>
- <code>$out</code>
- </ParamNameMismatch>
- </file>
<file src="lib/private/Route/Router.php">
<InvalidClass>
<code>\OC_APP</code>
@@ -3392,9 +3284,6 @@
</MoreSpecificReturnType>
</file>
<file src="lib/private/Streamer.php">
- <InvalidArgument>
- <code>$stream</code>
- </InvalidArgument>
<UndefinedInterfaceMethod>
<code>get</code>
</UndefinedInterfaceMethod>