Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] Update psalm-baseline.xml #43412

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 19 additions & 62 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<files psalm-version="5.9.0@8b9ad1eb9e8b7d3101f949291da2b9f7767cd163">
<file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
<MoreSpecificImplementedParamType>
<code>$calendarData</code>
<code>$data</code>
</MoreSpecificImplementedParamType>
</file>
<file src="3rdparty/sabre/dav/lib/CalDAV/CalendarHome.php">
Expand All @@ -17,7 +17,7 @@
</file>
<file src="3rdparty/sabre/dav/lib/CardDAV/AddressBook.php">
<MoreSpecificImplementedParamType>
<code>$vcardData</code>
<code>$data</code>
</MoreSpecificImplementedParamType>
</file>
<file src="3rdparty/sabre/dav/lib/CardDAV/AddressBookHome.php">
Expand Down 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 All @@ -122,11 +117,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 All @@ -153,11 +143,11 @@
<code>VCalendar</code>
</MoreSpecificReturnType>
<NullableReturnStatement>
<code><![CDATA[$this->atomic(function () use ($calendarId, $syncToken, $syncLevel, $limit, $calendarType) {
<code><![CDATA[$this->atomic(function () use ($calendarId, $syncToken, $syncLevel, $limit, $calendarType, $table) {
// Current synctoken
$qb = $this->db->getQueryBuilder();
$qb->select('synctoken')
->from('calendars')
->from($table)
->where(
$qb->expr()->eq('id', $qb->createNamedParameter($calendarId))
);
Expand Down Expand Up @@ -439,9 +429,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 +438,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 +517,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 @@ -1379,9 +1354,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 @@ -1664,9 +1636,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 @@ -1935,7 +1904,6 @@
</InvalidReturnStatement>
<InvalidReturnType>
<code>\OCP\IServerContainer</code>
<code>mixed</code>
</InvalidReturnType>
<UndefinedInterfaceMethod>
<code>getAppDataDir</code>
Expand Down Expand Up @@ -2042,6 +2010,11 @@
try {
return $this->query($resolveName);
} catch (QueryException $e2) {
// Pass null if typed and nullable
if ($parameter->allowsNull() && ($parameterType instanceof ReflectionNamedType)) {
return null;
}

// don't lose the error we got while trying to query by type
throw new QueryException($e->getMessage(), (int) $e->getCode(), $e);
}
Expand Down Expand Up @@ -2081,15 +2054,6 @@
<code>$trySession</code>
</RedundantCondition>
</file>
<file src="lib/public/Authentication/Token/IToken.php">
<AmbiguousConstantInheritance>
<code>DO_NOT_REMEMBER</code>
<code>PERMANENT_TOKEN</code>
<code>REMEMBER</code>
<code>TEMPORARY_TOKEN</code>
<code>WIPE_TOKEN</code>
</AmbiguousConstantInheritance>
</file>
<file src="lib/private/Authentication/Token/PublicKeyToken.php">
<UndefinedMagicMethod>
<code>getExpires</code>
Expand Down Expand Up @@ -2203,16 +2167,8 @@
</file>
<file src="lib/private/Command/ClosureJob.php">
<InvalidArgument>
<code>[LaravelClosure::class, OpisClosure::class]</code>
<code>[LaravelClosure::class]</code>
</InvalidArgument>
<ParamNameMismatch>
<code>$serializedCallable</code>
</ParamNameMismatch>
</file>
<file src="lib/private/Command/CommandJob.php">
<ParamNameMismatch>
<code>$serializedCommand</code>
</ParamNameMismatch>
</file>
<file src="lib/private/Comments/Manager.php">
<RedundantCast>
Expand Down Expand Up @@ -2868,9 +2824,6 @@
<LessSpecificReturnStatement>
<code>$users</code>
</LessSpecificReturnStatement>
<MoreSpecificImplementedParamType>
<code>$user</code>
</MoreSpecificImplementedParamType>
<MoreSpecificReturnType>
<code>\OC\User\User[]</code>
</MoreSpecificReturnType>
Expand Down Expand Up @@ -3155,11 +3108,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 @@ -3594,6 +3542,15 @@
<code>array{X-Request-Id: string, Cache-Control: string, Content-Security-Policy: string, Feature-Policy: string, X-Robots-Tag: string, Last-Modified?: string, ETag?: string, ...H}</code>
</MoreSpecificReturnType>
</file>
<file src="lib/public/Authentication/Token/IToken.php">
<AmbiguousConstantInheritance>
<code>DO_NOT_REMEMBER</code>
<code>PERMANENT_TOKEN</code>
<code>REMEMBER</code>
<code>TEMPORARY_TOKEN</code>
<code>WIPE_TOKEN</code>
</AmbiguousConstantInheritance>
</file>
<file src="lib/public/Cache/CappedMemoryCache.php">
<MissingTemplateParam>
<code>\ArrayAccess</code>
Expand Down
5 changes: 3 additions & 2 deletions psalm-ocp.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0"?>
<psalm
phpVersion="8.0"
errorLevel="4"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config"
errorBaseline="build/psalm-baseline-ocp.xml"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
errorBaseline="build/psalm-baseline-ocp.xml"
findUnusedBaselineEntry="false"
findUnusedCode="false"
>
Expand Down
5 changes: 3 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0"?>
<psalm
phpVersion="8.0"
errorLevel="4"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config"
errorBaseline="build/psalm-baseline.xml"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
errorBaseline="build/psalm-baseline.xml"
findUnusedBaselineEntry="false"
findUnusedCode="false"
>
Expand Down
Loading