please php8.3 and phpunit with no http-header output

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2025-04-28 10:28:02 +02:00
parent 8ab2e43426
commit a9da57f6fb
4 changed files with 6 additions and 4 deletions

View File

@@ -34,7 +34,9 @@ class Response
public static function jsonResponse($data = null, int $response_code = 200)
{
http_response_code($response_code);
if (!defined('TRAVIS_CI') || TRAVIS_CI == 0) {
http_response_code($response_code);
}
return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
}