Permalink
Browse files

建立 PostRepository (使用 Null Object 模式)

  • Loading branch information...
1 parent 99aea8c commit 88660f71a28eb5360280b884ceab99641600d4b6 @oomusou committed Jul 13, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/Repositories/PostRepository.php
@@ -13,7 +13,7 @@ class PostRepository
* @param string $default
* @return Post
*/
- public function getTitle(int $id, string $default)
+ public function getTitle(int $id, string $default = '')
{
return Post::whereId($id)
->get()

0 comments on commit 88660f7

Please sign in to comment.