diff --git a/src/Services/PostService.php b/src/Services/PostService.php index 86c3fd3d..9c930497 100644 --- a/src/Services/PostService.php +++ b/src/Services/PostService.php @@ -43,7 +43,7 @@ class PostService if (!$post) $post = $this->postDao->findById($postNameOrId); if (!$post) - throw new \InvalidArgumentException('Post with name "' . $postName . '" was not found.'); + throw new \InvalidArgumentException('Post with name "' . $postNameOrId . '" was not found.'); return $post; }; return $this->transactionManager->rollback($transactionFunc);