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.
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