Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 257ec81 + fadf0f1 commit dd7ee48Copy full SHA for dd7ee48
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