Skip to content

Commit

Permalink
Update the comments of the method createQueryTo in ActiveRecordFactor…
Browse files Browse the repository at this point in the history
…y so that the IDE can automatically identify the specific class of ActiveRecord
  • Loading branch information
niqingyang committed Dec 19, 2023
1 parent 480c0e1 commit 5044c91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ActiveRecordFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(private Factory $factory)
* @psalm-template T
* @psalm-param class-string<T> $arClass
* @psalm-return T

Check failure on line 35 in src/ActiveRecordFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8-ubuntu-latest

MismatchingDocblockReturnType: Docblock has incorrect return type 'T:fn-yiisoft\activerecord\activerecordfactory::createar as object', should be 'Yiisoft\ActiveRecord\ActiveRecordInterface'

Check failure on line 35 in src/ActiveRecordFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.1-ubuntu-latest

MismatchingDocblockReturnType: Docblock has incorrect return type 'T:fn-yiisoft\activerecord\activerecordfactory::createar as object', should be 'Yiisoft\ActiveRecord\ActiveRecordInterface'
* @psalm-suppress T
*/
public function createAR(
string $arClass,
Expand Down

0 comments on commit 5044c91

Please sign in to comment.