From fadf0f15cf5cad5a05e778b09187fa884868d38a Mon Sep 17 00:00:00 2001 From: diwipl Date: Tue, 11 Oct 2016 21:27:46 +0200 Subject: [PATCH] Update PostRepository.php sprintf function in findById method was missing second argument. --- More/Repository/PostRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/More/Repository/PostRepository.php b/More/Repository/PostRepository.php index 991a398..417bf52 100644 --- a/More/Repository/PostRepository.php +++ b/More/Repository/PostRepository.php @@ -28,7 +28,7 @@ class PostRepository $arrayData = $this->persistence->retrieve($id); if (is_null($arrayData)) { - throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist')); + throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist', $id)); } return Post::fromState($arrayData);