Skip to content

Commit fadf0f1

Browse files
authored
Update PostRepository.php
sprintf function in findById method was missing second argument.
1 parent 257ec81 commit fadf0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

More/Repository/PostRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function findById(int $id): Post
2828
$arrayData = $this->persistence->retrieve($id);
2929

3030
if (is_null($arrayData)) {
31-
throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist'));
31+
throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist', $id));
3232
}
3333

3434
return Post::fromState($arrayData);

0 commit comments

Comments
 (0)