Actions
Bug #104497
open[Bug] in QueryBuilder::setMaxResults()
Status:
Needs Feedback
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2024-07-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Core queryBuilder setMaxResults
Complexity:
Is Regression:
Sprint Focus:
Description
It is documented for 12.4 that using ->setMaxResults(null)
in QueryBuilder will return all results.
See: https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/Database/QueryBuilder/Index.html#setmaxresults-and-setfirstresult
But doing so results in this error message:Uncaught TYPO3 Exception TYPO3\CMS\Core\Database\Query\QueryBuilder::setMaxResults(): Argument #1 ($maxResults) must be of type int, null given, called in ...
Is this a core bug or a documentation bug?
In main
it seems to be implemented because the method signature is public function setMaxResults(?int $maxResults = null): QueryBuilder
.
Actions