From 881d2a6b38f5c8660726b3bd839d8bf6145df505 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 21 Sep 2014 18:30:29 +0200 Subject: [PATCH] Fixed unknown variable --- src/Services/PostService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);