From 8f360aa796b41cf8b2798285df0384cece12ad6b Mon Sep 17 00:00:00 2001 From: niqingyang Date: Tue, 19 Dec 2023 21:58:50 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ActiveRecordFactory.php b/src/ActiveRecordFactory.php index 8426fa7e4..2d9443131 100644 --- a/src/ActiveRecordFactory.php +++ b/src/ActiveRecordFactory.php @@ -29,11 +29,12 @@ public function __construct(private Factory $factory) * @throws InvalidConfigException * @throws NotFoundException * @throws NotInstantiableException + * @return ActiveRecordInterface * * @psalm-template T * @psalm-param class-string $arClass * @psalm-return T - * @psalm-suppress T + * @psalm-suppress MoreSpecificReturnType */ public function createAR( string $arClass,