diff --git a/src/NotFoundHttpHandler.php b/src/NotFoundHttpHandler.php index 9f5f4e4..6bf7625 100644 --- a/src/NotFoundHttpHandler.php +++ b/src/NotFoundHttpHandler.php @@ -14,7 +14,7 @@ trait NotFoundHttpHandler */ public function notFoundHttpException(NotFoundHttpException $exception) { - $this->response->setMessage($this->getMessage($exception)); + $this->response->setMessage($this->getNotFoundMessage($exception)); $this->response->setCode($this->getCode('not_found_http')); $this->response->setDescription($this->getDescription($exception)); $this->response->setHttpCode($exception->getStatusCode()); @@ -27,7 +27,7 @@ public function notFoundHttpException(NotFoundHttpException $exception) * @param NotFoundHttpException $exception * @return string */ - public function getMessage(NotFoundHttpException $exception) + public function getNotFoundMessage(NotFoundHttpException $exception) { $message = !empty($exception->getMessage()) ? $exception->getMessage() : class_basename($exception); if (basename($exception->getFile()) === 'RouteCollection.php') {