From 64b5b310a048ae8f20aba011686afae19f0272f8 Mon Sep 17 00:00:00 2001 From: niqingyang Date: Tue, 19 Dec 2023 22:16:24 +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 aa3fd917b..d4ff33b40 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 class-string $arClass active record class. + * @param 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 LessSpecificReturnStatement + * @psalm-suppress ActiveRecordInterface */ public function createAR( string $arClass,