From 111223db1be7c278a94c11708fbf8c301b6f37f0 Mon Sep 17 00:00:00 2001 From: "James (DPC)" <69664712+JamesDPC@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:49:06 +1000 Subject: [PATCH] (phpstan) argument should be a string --- src/Controllers/ChimpleController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/ChimpleController.php b/src/Controllers/ChimpleController.php index d8ef1e7..f2f807c 100644 --- a/src/Controllers/ChimpleController.php +++ b/src/Controllers/ChimpleController.php @@ -493,7 +493,7 @@ private function xhrError($code = 500, $message = "", $description = "") { $response = new HTTPResponse(); $response->setStatusCode($code); $response->addHeader('Content-Type', 'application/json'); - $response->addHeader('X-Submission-OK', 0); + $response->addHeader('X-Submission-OK', '0'); $response->addHeader('X-Submission-Description', $message); return $response; } @@ -506,7 +506,7 @@ private function xhrSuccess($code = 200, $message = "", $description = "") { $response = new HTTPResponse(); $response->setStatusCode($code); $response->addHeader('Content-Type', 'application/json'); - $response->addHeader('X-Submission-OK', 1); + $response->addHeader('X-Submission-OK', '1'); $response->addHeader('X-Submission-Description', $description); return $response; }