diff --git a/src/Repositories/Component/ComponentRepository.php b/src/Repositories/Component/ComponentRepository.php index 94038765..fdd3fcc7 100644 --- a/src/Repositories/Component/ComponentRepository.php +++ b/src/Repositories/Component/ComponentRepository.php @@ -35,12 +35,12 @@ interface ComponentRepository /** * Returns an object with related relationships. * - * @param int $id - * @param array $with + * @param int $id + * @param string[] $with * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException * * @return \Illuminate\Database\Eloquent\Model */ - public function with($id, array $with); + public function with($id, array $with = []); } diff --git a/src/Repositories/EloquentRepository.php b/src/Repositories/EloquentRepository.php index 737f38ec..7d4e11d3 100644 --- a/src/Repositories/EloquentRepository.php +++ b/src/Repositories/EloquentRepository.php @@ -20,8 +20,8 @@ abstract class EloquentRepository /** * Returns an object with related relationships. * - * @param int $id - * @param array $with + * @param int $id + * @param string[] $with * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException *