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 Nov 19, 2023
1 parent 653b18c commit 2296d04
Showing 1 changed file with 1 addition and 71 deletions.
72 changes: 1 addition & 71 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,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 Down Expand Up @@ -439,9 +434,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,9 +443,6 @@
<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>
Expand Down Expand Up @@ -541,7 +530,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 @@ -1378,9 +1366,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 +1648,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 @@ -1934,7 +1916,6 @@
</InvalidReturnStatement>
<InvalidReturnType>
<code>\OCP\IServerContainer</code>
<code>mixed</code>
</InvalidReturnType>
<UndefinedInterfaceMethod>
<code>getAppDataDir</code>
Expand Down Expand Up @@ -2016,39 +1997,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 @@ -2201,17 +2149,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 @@ -2867,9 +2805,6 @@
<LessSpecificReturnStatement>
<code>$users</code>
</LessSpecificReturnStatement>
<MoreSpecificImplementedParamType>
<code>$user</code>
</MoreSpecificImplementedParamType>
<MoreSpecificReturnType>
<code>\OC\User\User[]</code>
</MoreSpecificReturnType>
Expand Down Expand Up @@ -3154,11 +3089,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

0 comments on commit 2296d04

Please sign in to comment.