We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 257ec81 commit fadf0f1Copy full SHA for fadf0f1
More/Repository/PostRepository.php
@@ -28,7 +28,7 @@ public function findById(int $id): Post
28
$arrayData = $this->persistence->retrieve($id);
29
30
if (is_null($arrayData)) {
31
- throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist'));
+ throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist', $id));
32
}
33
34
return Post::fromState($arrayData);
0 commit comments