Skip to content

Commit e194919

Browse files
Remove type in Relation::setTargetClass to leave thrown Exceptions as they are
1 parent 831962f commit e194919

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function getTargetClass(): ?string
197197
*
198198
* @throws \InvalidArgumentException If the target model class is not of type string
199199
*/
200-
public function setTargetClass(string $targetClass): static
200+
public function setTargetClass($targetClass): static
201201
{
202202
if (! is_string($targetClass)) {
203203
// Require a class name here instead of a concrete model in oder to prevent circular references when

0 commit comments

Comments
 (0)