mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-27 10:10:14 +02:00
@@ -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);
|
||||
|
Reference in New Issue
Block a user