Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/replace-factory-with-closure' in…
Browse files Browse the repository at this point in the history
…to replace-factory-with-closure
  • Loading branch information
Tigrov committed Jun 22, 2024
2 parents 6377b2d + 559e8d0 commit a824e27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/AbstractActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function hasAttribute(string $name): bool
*
* Call methods declared in {@see ActiveQuery} to further customize the relation.
*
* @param string|ActiveRecordInterface|Closure $class The class name of the related record, or an instance of the
* @param ActiveRecordInterface|Closure|string $class The class name of the related record, or an instance of the
* related record, or a Closure to create an {@see ActiveRecordInterface} object.
* @param array $link The primary-foreign key constraint. The keys of the array refer to the attributes of the
* record associated with the `$class` model, while the values of the array refer to the corresponding attributes in
Expand Down Expand Up @@ -301,7 +301,7 @@ public function hasMany(string|ActiveRecordInterface|Closure $class, array $link
*
* Call methods declared in {@see ActiveQuery} to further customize the relation.
*
* @param string|ActiveRecordInterface|Closure $class The class name of the related record, or an instance of the
* @param ActiveRecordInterface|Closure|string $class The class name of the related record, or an instance of the
* related record, or a Closure to create an {@see ActiveRecordInterface} object.
* @param array $link The primary-foreign key constraint. The keys of the array refer to the attributes of the
* record associated with the `$class` model, while the values of the array refer to the corresponding attributes in
Expand All @@ -322,7 +322,7 @@ public function insert(array $attributes = null): bool
}

/**
* @param string|ActiveRecordInterface|Closure $arClass The class name of the related record, or an instance of the
* @param ActiveRecordInterface|Closure|string $arClass The class name of the related record, or an instance of the
* related record, or a Closure to create an {@see ActiveRecordInterface} object.
*
* @psalm-param ARClass $arClass
Expand Down Expand Up @@ -1077,7 +1077,7 @@ protected function setRelationDependencies(
/**
* Creates a query instance for `has-one` or `has-many` relation.
*
* @param string|ActiveRecordInterface|Closure $arClass The class name of the related record.
* @param ActiveRecordInterface|Closure|string $arClass The class name of the related record.
* @param array $link The primary-foreign key constraint.
* @param bool $multiple Whether this query represents a relation to more than one record.
*
Expand Down
2 changes: 1 addition & 1 deletion src/ActiveQueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function getTablesUsedInFrom(): array;
public function getSql(): string|null;

/**
* @return string|ActiveRecordInterface|Closure The AR class associated with this query.
* @return ActiveRecordInterface|Closure|string The AR class associated with this query.
*
* @psalm-return ARClass
*/
Expand Down

0 comments on commit a824e27

Please sign in to comment.