From 3f5566a5eddf8db1313fb91323589f8d3b4752c6 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 1 Jan 2015 19:02:22 +0000 Subject: [PATCH] Tweaked the with method declaration --- src/Repositories/Component/ComponentRepository.php | 6 +++--- src/Repositories/EloquentRepository.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 *