Skip to content

Commit

Permalink
(phpstan) argument should be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Aug 7, 2024
1 parent 0ef6236 commit 111223d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/ChimpleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 111223d

Please sign in to comment.