mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Add union return to better typehint
This commit is contained in:
@@ -120,7 +120,7 @@ trait InteractsWithTableQuery
|
||||
return $this->getRelationship($query)->getModel();
|
||||
}
|
||||
|
||||
protected function getRelationship(Builder $query): Relation
|
||||
protected function getRelationship(Builder $query): Relation|Builder
|
||||
{
|
||||
return $this->getQueryModel($query)->{$this->getRelationshipName()}();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user