From dafe298ce5d0b995ebe1746670704c0a35868a6a Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Thu, 19 Mar 2020 07:41:02 +0100 Subject: [PATCH] Fix phpdoc (#8074) --- lib/Doctrine/ORM/Query.php | 2 +- lib/Doctrine/ORM/QueryBuilder.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Query.php b/lib/Doctrine/ORM/Query.php index f582d99150b..1264997657f 100644 --- a/lib/Doctrine/ORM/Query.php +++ b/lib/Doctrine/ORM/Query.php @@ -624,7 +624,7 @@ public function contains($dql) /** * Sets the position of the first result to retrieve (the "offset"). * - * @param integer $firstResult The first result to return. + * @param int|null $firstResult The first result to return. * * @return Query This query object. */ diff --git a/lib/Doctrine/ORM/QueryBuilder.php b/lib/Doctrine/ORM/QueryBuilder.php index af4d8cd2be6..618a6b69216 100644 --- a/lib/Doctrine/ORM/QueryBuilder.php +++ b/lib/Doctrine/ORM/QueryBuilder.php @@ -100,7 +100,7 @@ class QueryBuilder /** * The index of the first result to retrieve. * - * @var integer + * @var int|null */ private $_firstResult = null; @@ -616,7 +616,7 @@ function (Query\Parameter $parameter) use ($key) : bool { /** * Sets the position of the first result to retrieve (the "offset"). * - * @param integer $firstResult The first result to return. + * @param int|null $firstResult The first result to return. * * @return self */ @@ -631,7 +631,7 @@ public function setFirstResult($firstResult) * Gets the position of the first result the query object was set to retrieve (the "offset"). * Returns NULL if {@link setFirstResult} was not applied to this QueryBuilder. * - * @return integer The position of the first result. + * @return int|null The position of the first result. */ public function getFirstResult() {