From 22457b4de6bf13f01bb133f50a82cc9a9505268c Mon Sep 17 00:00:00 2001 From: Kevin Olson Date: Thu, 24 Sep 2020 11:21:00 -0500 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20errors=20should=20be=20mes?= =?UTF-8?q?sages=20like=20success=20and=20info=20-=20not=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MetApi.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MetApi.php b/src/MetApi.php index 92b8733..db03c8f 100644 --- a/src/MetApi.php +++ b/src/MetApi.php @@ -195,15 +195,15 @@ public function getMeta() /** * add an error to our error stack * - * @param string $title + * @param string $message * @param string $detail * @param integer $status * @param boolean $source * @return MetApi */ - public function addError($title, $detail, $status = 400, $source = false) + public function addError($message, $detail, $status = 400, $source = false) { - $error = ['status' => $status, 'title' => $title,]; + $error = ['status' => $status, 'message' => $message,]; if ($source) { $error['source'] = $source; @@ -219,7 +219,7 @@ public function addError($title, $detail, $status = 400, $source = false) /** * Render errors * - * @param string $key - shortkey or title of error + * @param string $key - shortkey or error message * @param string|array $replace - shortkey params * @param integer $status - HTTP status code to pass * @param bool $source