Tweaked the with method declaration

This commit is contained in:
Graham Campbell
2015-01-01 19:02:22 +00:00
parent 5937b7b040
commit 3f5566a5ed
2 changed files with 5 additions and 5 deletions

View File

@@ -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 = []);
}

View File

@@ -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
*