Skip to content

Fix errors detected by PHPStan #3

Fix errors detected by PHPStan

Fix errors detected by PHPStan #3

Triggered via push October 18, 2023 14:53
Status Failure
Total duration 46s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: Classes/Controller/SingleCollectionController.php#L132
Cannot assign offset 'orderBy' to string.
phpstan: Classes/Controller/SingleCollectionController.php#L142
Parameter #1 $collection of method Kitodo\Dlf\Domain\Repository\DocumentRepository::findSolrByCollection() expects Kitodo\Dlf\Domain\Model\Collection|TYPO3\CMS\Extbase\Persistence\Generic\QueryResult, TYPO3\CMS\Extbase\Persistence\QueryResultInterface given.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L124
Variable $output might not be defined.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L129
Parameter #1 $string of function trim expects string, false|null given.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L129
Parameter #1 $string of function trim expects string, false|null given.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L131
Parameter #1 $string of function trim expects string, false|null given.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L131
Parameter #1 $string of function trim expects string, false|null given.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L136
Variable $output might not be defined.
phpstan: Classes/ViewHelpers/XpathViewHelper.php#L138
Variable $output might not be defined.
phpstan
Ignored error pattern #Parameter \#1 \$collection of method Kitodo\\Dlf\\Domain\\Repository\\DocumentRepository::findSolrByCollection\(\) expects Kitodo\\Dlf\\Domain\\Model\\Collection\|TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QueryResult, TYPO3\\CMS\\xtbase\\Persistence\\QueryResultInterface given\.# was not matched in reported errors.