Skip to content

Commit

Permalink
Update src/BaseActiveRecord.php
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Tigrov <[email protected]>
  • Loading branch information
niqingyang and Tigrov authored Jan 3, 2024
1 parent 80b1a83 commit 040a83a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ public function hasMany(string $class, array $link): ActiveQueryInterface
*
* @return ActiveQueryInterface The relational query object.
*
* @psalm-template T of ActiveRecordInterface
* @psalm-param class-string<T> $arClass
* @psalm-param class-string<ActiveRecordInterface> $arClass
*/
public function hasOne(string $class, array $link): ActiveQueryInterface

Check failure on line 371 in src/BaseActiveRecord.php

View workflow job for this annotation

GitHub Actions / PHP 8-ubuntu-latest

ArgumentTypeCoercion: Argument 1 of Yiisoft\ActiveRecord\BaseActiveRecord::createRelationQuery expects class-string<Yiisoft\ActiveRecord\ActiveRecordInterface>, but parent type string provided
{
Expand Down

0 comments on commit 040a83a

Please sign in to comment.