From 78e346208ca1feb5806fc5c8982d386b076e97bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Mon, 29 Apr 2024 17:16:01 +0200 Subject: [PATCH] chore: Update baseline to include new 3rdparty psalm errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- build/psalm-baseline.xml | 1503 ++++++++++++++++++-------------------- 1 file changed, 716 insertions(+), 787 deletions(-) diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index da3ff49f5f3..e828344c122 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1,99 +1,97 @@ - + - $data + - $data + - $data + - $data + - $principalUri + - $data + - $cardData + + + + + + + - array + - unserialize + - - - $uids - - - ]]> - - - $baseuri + - $baseuri + - \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($previousLog) - \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false) + + - $baseuri + - $baseuri + - $baseuri + - $baseuri + - registerEventListener + - setDateTime - setDateTime + + VEVENT->DTSTART]]> @@ -107,61 +105,61 @@ objectData['calendardata']]]> - $calendarData - $calendarData + + - array + - Reader::read($objectData) + - $objectData - $uris - $uris + + + - VCalendar + - null + - INode + - INode + getCalendarInCalendarHome($this->principalInfo['uri'], $calendarUri)]]> - calendarSearch + - $principal + - string|null + - $principalInfo + - $paths + @@ -169,47 +167,47 @@ DTEND]]> - hasTime - isFloating - isFloating + + + - $emailAddresses + ]]> - getDateTime - getDateTime - isFloating + + + - $provider::NOTIFICATION_TYPE + - $diff === false + - $vevents - VObject\Reader::read($calendarData, - VObject\Reader::OPTION_FORGIVING) + + - VObject\Component\VCalendar|null - VObject\Component\VEvent[] + + - getDateTime - getDateTime + + parent->UID]]> @@ -217,17 +215,17 @@ - array + - $principals + - string[] + - null - null + + @@ -241,8 +239,8 @@ - getNormalizedValue - getNormalizedValue + + @@ -254,20 +252,20 @@ DTEND]]> - get - getChildren + + - getDateTime - hasTime - isFloating - isFloating - principalSearch + + + + + - bool + @@ -278,7 +276,7 @@ ]]]> - string + @@ -293,7 +291,7 @@ - $webcalData + @@ -302,26 +300,26 @@ getKey()]]> - Reader::read($cardData) + - VCard + - $principal + - false + - Reader::read($cardData) + - VCard + @@ -329,23 +327,12 @@ - bool + - - - $type, - 'body' => $val - ]]]> - - - false|array{body: string, Content-Type: string} - - - string|null + @@ -356,89 +343,86 @@ - $groups + - \Sabre\HTTP\toDate($value) + - bool + - $data + - array{bool, string} + - tryTokenLogin + - $nodes + dirContent]]> - \Sabre\DAV\INode[] + node]]> - Folder + - null - null - null + + + - $fullSourcePath + node]]> - - $data - - \OCP\Files\File + - 0 + - bool + - \OCA\Circles\Api\v1\Circles + - getPath + - int - integer + + info->getId()]]> @@ -447,41 +431,41 @@ - array + - $principals + - string[] + - $results + circleToPrincipal($decodedName) ?: $this->circleToPrincipal($name)]]> - null - null - null - null - null - null - null + + + + + + + - \OCA\Circles\Api\v1\Circles - \OCA\Circles\Api\v1\Circles + + - new \OCA\DAV\Connector\Sabre\QuotaPlugin($view, true) + - $shareType + @@ -491,10 +475,10 @@ - null + - getId + @@ -504,39 +488,39 @@ - $whereValues + - array - string + + - $principals + - string[] + - $members + - null - null - null - null - null - null - null + + + + + + + - array + - null + @@ -546,13 +530,13 @@ - $value + - ?string + - $search + getTimestamp() !== false]]> @@ -567,7 +551,7 @@ backend->getArbiterPath()]]> - bool + @@ -578,12 +562,12 @@ - $arguments + - $arguments + @@ -608,14 +592,14 @@ l10n->l('date', $startDateTime, ['width' => 'medium'])]]> - string + - getDateTime - getDateTime - hasTime - isFloating - isFloating + + + + + @@ -623,52 +607,52 @@ getCursor()]]> - getDateTime - getDateTime - hasTime + + + - $tagId - $tagName + + - $objectName + - $members + - false + currentStream]]> - $context + - array + - array_values + - getId - getId - getId - getInternalPath - getNode - getSize + + + + + + @@ -681,7 +665,7 @@ ]]]> - array{name: string, displayName: string, description: ?string, vCards: VCard[]} + @@ -696,12 +680,12 @@ - $position + - throw $exception; + @@ -714,48 +698,48 @@ files->getMount($path)->getStorage()]]> - \OC\Files\Storage\Storage|null + - $id - $id - $id - $id - $id - $id - $remoteId + + + + + + + - $shareId - $shareId - $shareId - $shareId + + + + - bool - bool - bool + + + - $id - $id - $id - $id + + + + - $shareId + - string + @@ -763,27 +747,22 @@ - $result + ]]> - - - $files_list - - fileEncrypted[$fileId]]]> - $folder + fileEncrypted[$fileId]]]> - Folder + fileIsEncrypted]]> @@ -804,53 +783,50 @@ - null - null + + - $templateId + - getTemplates - open + + - $file - $i - $i - $i - $i - $i - $i - $i - $i - $i - $i - $i - $i + + + + + + + + + + + + + - - empty($encryptedFiles) - - isReadyForUser + - $this + getCode()]]> - (int)$status + @@ -863,7 +839,7 @@ - put + @@ -882,59 +858,54 @@ lastModified]]> - filetype - fopen + + - login + - decrypt - encrypt - setIV - setIV - setKey + + + + + - test + - (int)$code - (int)$code + + - \OCA\Circles\Api\v1\Circles - \OCA\Circles\Api\v1\Circles + + getRoomShareHelper()]]> getRoomShareHelper()]]> getRoomShareHelper()]]> - \OCA\Talk\Share\Helper\ShareAPIController + - - - $files_list - - - $mount + - Mount + - $cacheData + @@ -944,26 +915,26 @@ - array_values + - $itemSource - $itemSource + + - $shareWith + - fetchRow + - bool + @@ -971,10 +942,10 @@ sourceRootInfo]]> - ICacheEntry + - new FailedCache() + sourceRootInfo]]> @@ -982,7 +953,7 @@ - moveMount + @@ -993,7 +964,7 @@ - int + data->getId()]]> @@ -1001,66 +972,66 @@ - $entry + - ITrash + - getChild + - null + - INode + - $entry + - ITrash + - $file + - false + - $timestamp + - $timestamp + - $this - $this + + - getChild + - null + - getChild + @@ -1080,23 +1051,23 @@ - $groupid === null - $groupid === null + + - Response + - getSettingsManager + - ignoreNextcloudRequirementForApp + @@ -1106,12 +1077,12 @@ - isReady + - null + @@ -1131,26 +1102,26 @@ getRgb())]]> - array{0: int, 1: int, 2: int} + - $ln + 1 + - $this + - $uuid - $values + + - string[] + getCode()]]> @@ -1158,43 +1129,43 @@ - $subj + - default: + + break;]]> - $groupID + - $gid + - $i + - null + - isset($qb) + - isset($qb) + - public function setLdapAccess(Access $access) { + @@ -1205,7 +1176,7 @@ refreshedFeatures]]> - null + 0)]]> @@ -1213,38 +1184,38 @@ - string|false + - $limit - $offset + + - null + 0)]]> - is_string($dn) + - $uid + - $possibleAttrs[$i] + - registerProvider + - null + @@ -1252,13 +1223,13 @@ size]]> - $size + size]]> - string + @@ -1268,16 +1239,16 @@ - $decodedValue[1] - $decodedValue[1] - $decodedValue[1] - $decodedValue[1] + + + + - $hour1 - $minute1 + + @@ -1287,56 +1258,46 @@ - string + - $missingCheck + - $result + - $result + - bool + - getAllConfiguredScopesForOperation - getChecks - getOperations - getOperations - isUserScopeEnabled + + + + + - $arguments + - - - $result === false - - - array + - - - $result === true - - - 0 - 1 + + @@ -1344,31 +1305,31 @@ appConfig->getValues($app, false)]]> - getFilteredValues + - 0 - 1 + + - null + - [0] + - string[] + - $levelNum + @@ -1378,39 +1339,29 @@ - getAllMappings - updateFilecache + + - - - $found - $found - - - array{shareId: int, fileTarget: string, initiator: string, receiver: string, owner: string, mountOwner: string}[] - array{shareId: int, fileTarget: string, initiator: string, receiver: string, owner: string, mountOwner: string}[] - - - section - section + + - [] + - !is_string($stateToken) + - searchCollections + @@ -1420,7 +1371,7 @@ - findMatchingRoute + @@ -1430,13 +1381,13 @@ - $this + create('core_ajax_update', '/core/ajax/update.php')]]> - getIcon + @@ -1446,7 +1397,7 @@ - $restrictions + @@ -1459,46 +1410,46 @@ settings]]> - ActivitySettings[] + - $key + - !is_array($userIds) + - array - array + + - fetch + - bool + - version_compare($first, $second, $operator) + - $array[$element][] - $array[$element][] + + - (string)$xml + - array + @@ -1513,21 +1464,21 @@ - getName + - boolean|null + server]]> - \OCP\IServerContainer + - getAppDataDir + @@ -1535,45 +1486,41 @@ request->method]]> - null + - @readfile($path) - http_response_code() + + - bool - int + + - $name - $remoteAddress getOverwriteHost()]]> - method]]> - $uri cookies[$key]) ? $this->cookies[$key] : null]]> env[$key]) ? $this->env[$key] : null]]> files[$key]) ? $this->files[$key] : null]]> - \is_array($params) + - \Sabre\HTTP\decodePath($pathInfo) + - log + - setOCSVersion + @@ -1587,7 +1534,7 @@ request->server]]> - \OCA\Talk\Controller\PageController + @@ -1597,7 +1544,7 @@ - $default + @@ -1643,10 +1590,10 @@ }, $constructor->getParameters()))]]> - ArrayAccess + - \stdClass + getCode()]]> @@ -1659,27 +1606,27 @@ - $trySession + - getExpires - getLastCheck - getLoginName - getName - getPassword - getRemember - getScope - setExpires - setLastCheck - setName - setPassword - setPasswordInvalid - setScope - setScope - setToken - setType + + + + + + + + + + + + + + + + @@ -1688,13 +1635,13 @@ providers]]> - [] + providers]]> - IProvider[] + providers]]> @@ -1702,13 +1649,13 @@ - \ArrayAccess + - bool|mixed - bool|mixed + + @@ -1730,7 +1677,7 @@ )]]> - ICreateFromString[] + - $serializedCallable + - [LaravelClosure::class] + - (string)$id + @@ -1769,8 +1716,8 @@ set($key, $value)]]> - $CONFIG - $CONFIG + + @@ -1780,12 +1727,12 @@ - $searchOptions + - getParams + @@ -1793,10 +1740,10 @@ - getParams + - $params + @@ -1808,15 +1755,15 @@ getCode())]]> - 0 + - $s + - IMigrationStep + @@ -1824,13 +1771,13 @@ functionBuilder->lower($x)]]> - $y - $y + + - getParams + @@ -1838,22 +1785,21 @@ - string + - $alias + - $groupBys - $selects + - string + - $string + @@ -1868,25 +1814,25 @@ ])]]> - string + - $timestamp + - float + - microtime(true) + - stopQuery + @@ -1894,14 +1840,14 @@ execute()]]> - TemplateResponse - int + + - $template - $template - $template - $template + + + + @@ -1909,35 +1855,27 @@ manager->getFileForToken($this->data['user_id'], $this->data['file_id'], $this->data['file_path'])]]> - getShareForToken + - - - $uniqueUserIds, 'public' => $public]]]> - - - array{users: string[], public: bool} - - - deleteUserKey + - null - null - null + + + - bool + - $providerId + @@ -1945,61 +1883,61 @@ folder]]> - Folder + - $parentData + - array + - $path - \OC_Util::normalizeUnicode($path) + + - null - null + + - $searchQuery + - [] + - getIncomplete - insert - put + + + - $data + - $file - $file + + - self::SCAN_RECURSIVE_INCOMPLETE + - $existingChildren + - array[] + - array + getStorageInfo($storageId)]]> @@ -2012,16 +1950,16 @@ - array - array + + - $searchQuery + - $user + @@ -2032,17 +1970,17 @@ - remoteStorageMounts - removeUserStorageMount + + - array + cacheInfoCache[$fileId]]]> - array{int, string, int} + @@ -2052,25 +1990,25 @@ findByStorageId($id)]]> - Mount\MountPoint[] - Mount\MountPoint[] - \OC\Files\Storage\Storage|null + + + - addStorageWrapper + - wrap + - \OCP\Files\Mount\IMountPoint + - null + @@ -2078,7 +2016,7 @@ view->hash($type, $this->path, $raw)]]> - string + @@ -2089,28 +2027,28 @@ }, $files)]]> - $node + - \OC\Files\Node\Node - \OC\Files\Node\Node[] + + - emit - emit - emit - emit - emit - emit - emit - emit - emit - emit - emit - emit - emit + + + + + + + + + + + + + @@ -2120,30 +2058,30 @@ - $node + - Folder + - FileInfo + - getChecksum + parent]]> - INode|IRootFolder + fileInfo]]> - $type + fileInfo]]> @@ -2152,7 +2090,7 @@ - $folders + createNode($fullPath, $fileInfo, false)]]> mountManager->findByNumericId($numericId)]]> mountManager->findByStorageId($storageId)]]> @@ -2160,63 +2098,63 @@ user]]> - MountPoint[] - Node - \OC\Files\Mount\MountPoint[] - \OC\Files\Mount\MountPoint[] - \OC\User\User + + + + + user]]> - remove + - $source + - ClientResolver::_default_signature_provider() - ClientResolver::_default_signature_provider() + + - ClientResolver::_default_signature_provider() + - Promise\promise_for( + + )]]> - upload + - \Aws\serialize($command) + - null + - string + - string|false + - !$permissions + copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)]]> @@ -2232,39 +2170,39 @@ - ArrayCache - ArrayCache + + getBody()]]> - fopen + - null + - new FailedCache() - true + + - getCache - verifyPath + + - $file + - $space === false || is_null($space) - is_null($space) + + - $stat === false + @@ -2275,9 +2213,9 @@ - \Normalizer::FORM_C - \Normalizer::FORM_C - \Normalizer::FORM_D + + + namesCache]]> @@ -2301,21 +2239,21 @@ - $result - $result + + copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)]]> - $newUnencryptedSize - $result + + - bool - int + + - $lastChunkPos - $size + + @@ -2323,7 +2261,7 @@ getWrapperStorage()->filetype($this->getUnjailedPath($path))]]> - bool + @@ -2331,23 +2269,23 @@ getWrapperStorage()->test()]]> - true + - stream_close - stream_flush + + - !$isDefaultTemplates + - $mimetype + @@ -2355,25 +2293,25 @@ execute()]]> - int + - $mounts + - \OC\Files\Mount\MountPoint[] + - $mtime + - acquireLock - changeLock - releaseLock + + + @@ -2383,16 +2321,16 @@ - bool + - $hide + - $users + - \OC\User\User[] + emitter]]> @@ -2400,31 +2338,31 @@ emitter]]> - addToGroup - countUsersInGroup - deleteGroup - removeFromGroup + + + + - $groups - array_values($groups) - array_values($groups) + + + - \OC\Group\Group[] - \OC\Group\Group[] + + - createGroup - getGroupDetails - isAdmin + + + - string|resource + stream ? @@ -2434,15 +2372,15 @@ - false - false + + - null + @@ -2452,41 +2390,41 @@ getDN(true)['CN']]]> - getOnlyDefaultAliases + - ExcludeFileByNameFilterIterator + - ExcludeFoldersByPathFilterIterator + - null|string + - array|mixed + - $matches[1] + - get + - [] + - getIncomplete + - getOwner - getPermissions + + - new IteratorDirectory([]) - new NullCache() + + - getCache - opendir + + - null - null + + - new IteratorDirectory([]) + - $callback() + - $sessionCallback + - $request + - $limit === null + @@ -2561,58 +2499,58 @@ getPrefix() . $key, $value, $ttl)]]> - bool + - mixed - mixed - mixed - mixed + + + + - [] + - $maxPreviewImage + - null|string + - ISimpleFile + - height - height - preciseResizeCopy - resizeCopy - valid - width - width + + + + + + + - $thumbnail === false ? null: $thumbnail + - ?IImage + - \RedisCluster::OPT_SLAVE_FAILOVER + - array + @@ -2620,25 +2558,25 @@ getBody()]]> - bool|string + - $response + - false + - $arguments + - $arguments + @@ -2648,20 +2586,20 @@ - $out + - $out + - \OC_APP + - string + collectionName]]> @@ -2669,7 +2607,7 @@ - $provider instanceof Provider + @@ -2682,7 +2620,7 @@ - null + @@ -2701,25 +2639,25 @@ execute()]]> - int - int + + - decrypt - encrypt - setIV - setIV - setPassword - setPassword + + + + + + - \OCP\Calendar\Resource\IManager - \OCP\Calendar\Room\IManager - \OCP\Files\Folder|null + + + get(IFile::class)]]> @@ -2730,15 +2668,15 @@ get(\OCP\Encryption\IManager::class)]]> - \OC\Encryption\File - \OC\Encryption\Manager - \OC\Group\Manager - \OC\NavigationManager - \OC\User\Manager - \OC\User\Session + + + + + + - \OC\OCSClient + @@ -2751,12 +2689,12 @@ - $value + - $value + @@ -2764,7 +2702,7 @@ - $vendor + @@ -2785,59 +2723,59 @@ - set + - getParent + - $id + - update + - \OCA\Circles\Api\v1\Circles + - getChildren + - FederatedShareProvider - ShareByMailProvider + + - $provider - $provider + + shareByCircleProvider]]> - getProviderForType + - null - null - null - null - null - null + + + + + + - $shareProviderClass + - \OCA\Circles\ShareByCircleProvider + - RoomShareProvider - \OCA\Circles\ShareByCircleProvider - \OCA\Talk\Share\RoomShareProvider - private $roomShareProvider = null; - private $shareByCircleProvider = null; + + + + + @@ -2845,107 +2783,107 @@ node]]> - getNode + - get + - listen - listen + + - getSupportedApps + - \OCP\ITags + - null + - $from - $names + + - $tag + - false - false + + - $style - $style + + - null - null + + - false + - $script - $script + + - string - string + + - $appName - $appName + + - getInitialStates + - $path + - false + - IUser|false + - $backend + - createUser - getUsersForUserValueCaseInsensitive + + - boolean|null + server]]> @@ -2954,77 +2892,77 @@ - emit - emit - emit - emit - emit + + + + + - int + - null + - $groupsList + - null + - $appId === null - $appId === null + + - \OC\InsufficientStorageException + - $getType === self::ZIP_DIR - $getType === self::ZIP_DIR + + - get - get + + - $matches[0][$last_match] - $matches[1][$last_match] + + - $path + - getQuota + - bool|string + - \Test\Util\User\Dummy + - void + @@ -3039,10 +2977,10 @@ - string + - $column + @@ -3050,50 +2988,41 @@ headers)]]> - 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} + - - - DO_NOT_REMEMBER - PERMANENT_TOKEN - REMEMBER - TEMPORARY_TOKEN - WIPE_TOKEN - - - $step + - array{0: int, 1: int, 2: int} + - mixed + - ArrayAccess - IteratorAggregate + + - \OC_App::getStorage($app) + - array + - \Iterator + @@ -3101,7 +3030,7 @@ mode]]> - null|IPreview::MODE_FILL|IPreview::MODE_COVER + -- 2.39.5