Fixed unknown variable
This commit is contained in:
parent
1d72cec84b
commit
881d2a6b38
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue