Skip to content

Commit

Permalink
Update psalm baseline
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
nextcloud-command authored Jan 30, 2024
1 parent efdfe2b commit 94dfff2
Showing 1 changed file with 5 additions and 116 deletions.
121 changes: 5 additions & 116 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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,
Expand All @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -1663,9 +1617,6 @@
<InvalidReturnType>
<code>string</code>
</InvalidReturnType>
<ParamNameMismatch>
<code>$uid</code>
</ParamNameMismatch>
</file>
<file src="apps/workflowengine/lib/Listener/LoadAdditionalSettingsScriptsListener.php">
<MissingTemplateParam>
Expand Down Expand Up @@ -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>
Expand All @@ -1934,7 +1880,6 @@
</InvalidReturnStatement>
<InvalidReturnType>
<code>\OCP\IServerContainer</code>
<code>mixed</code>
</InvalidReturnType>
<UndefinedInterfaceMethod>
<code>getAppDataDir</code>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -2154,9 +2066,7 @@
<code>$image</code>
<code>$image</code>
</InvalidArgument>
<InvalidReturnStatement>
<code>$image</code>
</InvalidReturnStatement>
<InvalidReturnStatement/>
<InvalidReturnType>
<code>GdImage|false</code>
</InvalidReturnType>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -2881,9 +2781,6 @@
<LessSpecificReturnStatement>
<code>$users</code>
</LessSpecificReturnStatement>
<MoreSpecificImplementedParamType>
<code>$user</code>
</MoreSpecificImplementedParamType>
<MoreSpecificReturnType>
<code>\OC\User\User[]</code>
</MoreSpecificReturnType>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -3392,9 +3284,6 @@
</MoreSpecificReturnType>
</file>
<file src="lib/private/Streamer.php">
<InvalidArgument>
<code>$stream</code>
</InvalidArgument>
<UndefinedInterfaceMethod>
<code>get</code>
</UndefinedInterfaceMethod>
Expand Down

0 comments on commit 94dfff2

Please sign in to comment.