From b70180a5e4bd2655eeed3c670f856e8e75f63579 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 4 Apr 2024 18:05:57 +0200 Subject: chore: Add 3rdparty error to baseline. Also removed fixed errors. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CDATA stuff comes from a psalm new version, nothing to worry about, both syntax are equivalent. Signed-off-by: Côme Chilliet --- build/psalm-baseline.xml | 173 ++++++++++------------------------------------- 1 file changed, 36 insertions(+), 137 deletions(-) (limited to 'build/psalm-baseline.xml') diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index c2a606e4170..be80da57b39 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -38,6 +38,11 @@ array + + + unserialize + + $uids @@ -109,7 +114,6 @@ array - array Reader::read($objectData) @@ -123,86 +127,6 @@ VCalendar - atomic(function () use ($calendarId, $syncToken, $syncLevel, $limit, $calendarType) { - // Current synctoken - $qb = $this->db->getQueryBuilder(); - $qb->select('synctoken') - ->from('calendars') - ->where( - $qb->expr()->eq('id', $qb->createNamedParameter($calendarId)) - ); - $stmt = $qb->executeQuery(); - $currentToken = $stmt->fetchOne(); - - if ($currentToken === false) { - return null; - } - - $result = [ - 'syncToken' => $currentToken, - 'added' => [], - 'modified' => [], - 'deleted' => [], - ]; - - if ($syncToken) { - $qb = $this->db->getQueryBuilder(); - - $qb->select('uri', 'operation') - ->from('calendarchanges') - ->where( - $qb->expr()->andX( - $qb->expr()->gte('synctoken', $qb->createNamedParameter($syncToken)), - $qb->expr()->lt('synctoken', $qb->createNamedParameter($currentToken)), - $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)), - $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType)) - ) - )->orderBy('synctoken'); - if (is_int($limit) && $limit > 0) { - $qb->setMaxResults($limit); - } - - // Fetching all changes - $stmt = $qb->executeQuery(); - $changes = []; - - // This loop ensures that any duplicates are overwritten, only the - // last change on a node is relevant. - while ($row = $stmt->fetch()) { - $changes[$row['uri']] = $row['operation']; - } - $stmt->closeCursor(); - - foreach ($changes as $uri => $operation) { - switch ($operation) { - case 1: - $result['added'][] = $uri; - break; - case 2: - $result['modified'][] = $uri; - break; - case 3: - $result['deleted'][] = $uri; - break; - } - } - } else { - // No synctoken supplied, this is the initial sync. - $qb = $this->db->getQueryBuilder(); - $qb->select('uri') - ->from('calendarobjects') - ->where( - $qb->expr()->andX( - $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)), - $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType)) - ) - ); - $stmt = $qb->executeQuery(); - $result['added'] = $stmt->fetchAll(\PDO::FETCH_COLUMN); - $stmt->closeCursor(); - } - return $result; - }, $this->db)]]> null @@ -312,7 +236,7 @@ - is_array($modified['old']) + @@ -323,8 +247,8 @@ - [$aclPlugin, 'propFind'] - [$aclPlugin, 'propFind'] + + DTEND]]> @@ -359,12 +283,12 @@ - !is_array($newProps['filters']['comps']) - !is_array($newProps['filters']['params']) - !is_array($newProps['filters']['props']) - !isset($newProps['filters']['comps']) || !is_array($newProps['filters']['comps']) - !isset($newProps['filters']['params']) || !is_array($newProps['filters']['params']) - !isset($newProps['filters']['props']) || !is_array($newProps['filters']['props']) + + + + + + @@ -400,7 +324,7 @@ VCard - $addressBooks[$row['id']][$readOnlyPropertyName] === 0 + @@ -502,7 +426,7 @@ bool - new PreconditionFailed('Cannot filter by non-existing tag', 0, $e) + \OCA\Circles\Api\v1\Circles @@ -767,7 +691,7 @@ - get_class($res) === 'OpenSSLAsymmetricKey' + @@ -782,7 +706,7 @@ - new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0) + @@ -810,7 +734,7 @@ $shareId $shareId $shareId - (int)$data['id'] + @@ -834,7 +758,7 @@ string - (int)$share['id'] + @@ -1063,7 +987,7 @@ - $_['hideFileList'] !== true + @@ -1193,7 +1117,7 @@ getId()]]> - (int)$data['id'] + @@ -1202,11 +1126,6 @@ getObjectId()]]> - - - TIME_SENSITIVE - - getRgb())]]> @@ -1511,7 +1430,6 @@ - $this $this create('core_ajax_update', '/core/ajax/update.php')]]> @@ -1682,7 +1600,7 @@ - $action['url-postfix'] + @@ -1772,20 +1690,6 @@ setType - - - $row['provider_id'], - 'uid' => $row['uid'], - 'enabled' => 1 === (int) $row['enabled'], - ]; - }, $rows)]]> - - - ]]> - - providers]]> @@ -1906,7 +1810,7 @@ getParams - $params['collation'] + @@ -1917,8 +1821,8 @@ $params - $params['adapter'] - $params['tablePrefix'] + + @@ -1951,7 +1855,7 @@ getParams - $params['collation'] + @@ -1980,10 +1884,6 @@ 'width' => $format, ])]]> - - public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) { - public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) { - l($type, $timestamp, [ 'width' => $format, @@ -2146,10 +2046,10 @@ $user - get_class($provider) !== 'OCA\Files_Sharing\MountProvider' + - get_class($provider) === 'OCA\Files_Sharing\MountProvider' + @@ -2216,7 +2116,6 @@ \OC\Files\Node\Node \OC\Files\Node\Node[] - \OC\Files\Node\Node[] @@ -2313,7 +2212,7 @@ Promise\promise_for( new Credentials($key, $secret) ) - \Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider()) + @@ -2561,8 +2460,8 @@ false - $app['path'] - $app['path'] + + null @@ -2884,7 +2783,7 @@ - $type === 'pdo' + $vendor @@ -2905,7 +2804,7 @@ getId()]]> getId()]]> - (int)$data['id'] + set @@ -3097,8 +2996,8 @@ $groupsList - $dir['path'] - $dir['url'] + + null -- cgit v1.2.3