Skip to content

Commit

Permalink
tests: Update psalm baseline
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jul 29, 2024
1 parent eee69df commit 19275c3
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 25 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
"psalm:update-baseline:force": "psalm.phar --threads=1 --update-baseline --set-baseline=psalm-baseline.xml",
"test:unit": "phpunit --config tests/phpunit.xml",
"post-install-cmd": [
"@composer bin all install --ansi",
Expand Down
94 changes: 69 additions & 25 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
<files psalm-version="5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505">
<file src="lib/AppInfo/Application.php">
<DeprecatedInterface>
<code><![CDATA[$this->getContainer()]]></code>
Expand Down Expand Up @@ -691,14 +691,6 @@
</MoreSpecificImplementedParamType>
</file>
<file src="lib/Controller/AdminController.php">
<MixedArrayAccess>
<code><![CDATA[$lscpu['lscpu']]]></code>
<code><![CDATA[$lscpu['lscpu'][0]]]></code>
<code><![CDATA[$lscpu['lscpu'][0]['data']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$lscpu]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[JSONResponse]]></code>
</MixedInferredReturnType>
Expand Down Expand Up @@ -799,7 +791,6 @@
<code><![CDATA[class FaceDetectionMapper extends QBMapper {]]></code>
</InvalidDocblock>
<LessSpecificReturnStatement>
<code><![CDATA[$qb->executeQuery()->fetchAll(\PDO::FETCH_COLUMN)]]></code>
<code><![CDATA[$this->findEntities($qb)]]></code>
<code><![CDATA[$this->findEntities($qb)]]></code>
<code><![CDATA[$this->findEntities($qb)]]></code>
Expand Down Expand Up @@ -828,7 +819,6 @@
<code><![CDATA[list<\OCA\Recognize\Db\FaceDetection>]]></code>
<code><![CDATA[list<\OCA\Recognize\Db\FaceDetection>]]></code>
<code><![CDATA[list<\OCA\Recognize\Db\FaceDetectionWithTitle>]]></code>
<code><![CDATA[list<string>]]></code>
</MoreSpecificReturnType>
</file>
<file src="lib/Db/FaceDetectionWithTitle.php">
Expand Down Expand Up @@ -979,20 +969,6 @@
</UndefinedDocblockClass>
</file>
<file src="lib/Hooks/FileListener.php">
<InvalidDocblock>
<code><![CDATA[FileListener]]></code>
<code><![CDATA[class FileListener implements IEventListener {]]></code>
</InvalidDocblock>
<MissingTemplateParam>
<code><![CDATA[IEventListener]]></code>
</MissingTemplateParam>
<MixedArgument>
<code><![CDATA[$accessList['users']]]></code>
<code><![CDATA[$accessList['users']]]></code>
</MixedArgument>
<MixedArgumentTypeCoercion>
<code><![CDATA[fn (int|string $id) => (string)$id]]></code>
</MixedArgumentTypeCoercion>
<PossiblyNullArgument>
<code><![CDATA[$mount->getNumericStorageId()]]></code>
<code><![CDATA[$mount->getNumericStorageId()]]></code>
Expand Down Expand Up @@ -1053,9 +1029,20 @@
</PossiblyFalseArgument>
</file>
<file src="lib/Service/IgnoreService.php">
<MixedAssignment>
<code><![CDATA[$result]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[list<string>]]></code>
</MixedInferredReturnType>
<MixedMethodCall>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[eq]]></code>
<code><![CDATA[executeQuery]]></code>
<code><![CDATA[fetchAll]]></code>
<code><![CDATA[in]]></code>
</MixedMethodCall>
<MixedReturnStatement>
<code><![CDATA[$this->inMemoryCache[$cacheKey]]]></code>
</MixedReturnStatement>
Expand All @@ -1064,6 +1051,63 @@
</RedundantConditionGivenDocblockType>
</file>
<file src="lib/Service/StorageService.php">
<MixedAssignment>
<code><![CDATA[$files]]></code>
<code><![CDATA[$ignoreFileidsExpr[]]]></code>
<code><![CDATA[$ignoreFileidsExpr[]]]></code>
<code><![CDATA[$ignoreFileidsExpr[]]]></code>
<code><![CDATA[$res]]></code>
<code><![CDATA[$result]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[string]]></code>
<code><![CDATA[string]]></code>
<code><![CDATA[string]]></code>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedMethodCall>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andWhere]]></code>
<code><![CDATA[andX]]></code>
<code><![CDATA[andX]]></code>
<code><![CDATA[andX]]></code>
<code><![CDATA[andX]]></code>
<code><![CDATA[closeCursor]]></code>
<code><![CDATA[closeCursor]]></code>
<code><![CDATA[closeCursor]]></code>
<code><![CDATA[eq]]></code>
<code><![CDATA[eq]]></code>
<code><![CDATA[eq]]></code>
<code><![CDATA[eq]]></code>
<code><![CDATA[executeQuery]]></code>
<code><![CDATA[executeQuery]]></code>
<code><![CDATA[executeQuery]]></code>
<code><![CDATA[fetch]]></code>
<code><![CDATA[fetch]]></code>
<code><![CDATA[fetch]]></code>
<code><![CDATA[gt]]></code>
<code><![CDATA[in]]></code>
<code><![CDATA[in]]></code>
<code><![CDATA[in]]></code>
<code><![CDATA[like]]></code>
<code><![CDATA[notLike]]></code>
<code><![CDATA[notLike]]></code>
<code><![CDATA[notLike]]></code>
<code><![CDATA[notLike]]></code>
<code><![CDATA[orX]]></code>
<code><![CDATA[whereStorageId]]></code>
</MixedMethodCall>
<MixedReturnStatement>
<code><![CDATA[$qb->expr()->notLike('path', $qb->createNamedParameter($path ? $path . '/%' : '%'))]]></code>
<code><![CDATA[$qb->expr()->notLike('path', $qb->createNamedParameter($path ? $path . '/%' : '%'))]]></code>
<code><![CDATA[$qb->expr()->notLike('path', $qb->createNamedParameter($path ? $path . '/%' : '%'))]]></code>
<code><![CDATA[$qb->expr()->notLike('path', $qb->createNamedParameter($path ? $path . '/%' : '%'))]]></code>
</MixedReturnStatement>
<RedundantCastGivenDocblockType>
<code><![CDATA[(int)$row['root_id']]]></code>
<code><![CDATA[(int)$row['storage_id']]]></code>
Expand Down

0 comments on commit 19275c3

Please sign in to comment.