From 4ffc406facd99732fb0c7078039266984d05c0f8 Mon Sep 17 00:00:00 2001 From: Dmytro Tsybenko Date: Sun, 21 Jan 2024 04:08:09 +0200 Subject: [PATCH] Fix Collection return type in Query class template --- templates/Builder/Om/baseQueryClassHeader.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/Builder/Om/baseQueryClassHeader.php b/templates/Builder/Om/baseQueryClassHeader.php index 71e47e5f40..cf43cad718 100644 --- a/templates/Builder/Om/baseQueryClassHeader.php +++ b/templates/Builder/Om/baseQueryClassHeader.php @@ -77,12 +77,12 @@ * @method requireOneBygetPhpName() ?>(getPhpType() ?> $getName() ?>) Return the first filtered by the getName() ?> column and throws when not found * - * @method []|Collection find(?ConnectionInterface $con = null) Return objects based on current ModelCriteria - * @psalm-method Collection&\Traversable<> find(?ConnectionInterface $con = null) Return objects based on current ModelCriteria + * @method []|\Propel\Runtime\Collection\Collection find(?ConnectionInterface $con = null) Return objects based on current ModelCriteria + * @psalm-method \Propel\Runtime\Collection\Collection&\Traversable<> find(?ConnectionInterface $con = null) Return objects based on current ModelCriteria * - * @method []|Collection findBygetPhpName() ?>(getPhpType() ?>|array<getPhpType() ?>> $getName() ?>) Return objects filtered by the getName() ?> column - * @psalm-method Collection&\Traversable<> findBygetPhpName() ?>(getPhpType() ?>|array<getPhpType() ?>> $getName() ?>) Return objects filtered by the getName() ?> column + * @method []|\Propel\Runtime\Collection\Collection findBygetPhpName() ?>(getPhpType() ?>|array<getPhpType() ?>> $getName() ?>) Return objects filtered by the getName() ?> column + * @psalm-method \Propel\Runtime\Collection\Collection&\Traversable<> findBygetPhpName() ?>(getPhpType() ?>|array<getPhpType() ?>> $getName() ?>) Return objects filtered by the getName() ?> column * * @method []|\Propel\Runtime\Util\PropelModelPager paginate($page = 1, $maxPerPage = 10, ?ConnectionInterface $con = null) Issue a SELECT query based on the current ModelCriteria and uses a page and a maximum number of results per page to compute an offset and a limit