From 0d4ccc0831b1e9f135e7068a849006e264f667f5 Mon Sep 17 00:00:00 2001 From: niqingyang Date: Tue, 19 Dec 2023 22:14:06 +0800 Subject: [PATCH] Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord --- src/ActiveRecordFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ActiveRecordFactory.php b/src/ActiveRecordFactory.php index 2d9443131..aa3fd917b 100644 --- a/src/ActiveRecordFactory.php +++ b/src/ActiveRecordFactory.php @@ -20,7 +20,7 @@ public function __construct(private Factory $factory) /** * Allows you to create an active record instance through the factory. * - * @param string $arClass active record class. + * @param class-string $arClass active record class. * @param string $tableName The name of the table associated with this ActiveRecord class, if its empty string the * name will be generated automatically by calling {@see getTableName()} in the active record class. * @param ConnectionInterface|null $db the database connection used for creating active record instances. @@ -34,7 +34,7 @@ public function __construct(private Factory $factory) * @psalm-template T * @psalm-param class-string $arClass * @psalm-return T - * @psalm-suppress MoreSpecificReturnType + * @psalm-suppress LessSpecificReturnStatement */ public function createAR( string $arClass,