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

@@ -19,7 +19,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
extensions: mbstring, xml, ctype, pdo_mysql, mysql, curl, json, zip, session, filter, posix, openssl, fileinfo, bcmath, gmp, gnupg
extensions: mbstring, xml, ctype, pdo_mysql, mysql, curl, json, zip, session, filter, posix, openssl, fileinfo, bcmath, gmp
- name: Install tools
run: sudo apt-get install -y ant

View File

@@ -19,7 +19,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
extensions: mbstring, xml, ctype, pdo_mysql, mysql, curl, json, zip, session, filter, posix, openssl, fileinfo, bcmath, gmp, gnupg
extensions: mbstring, xml, ctype, pdo_mysql, mysql, curl, json, zip, session, filter, posix, openssl, fileinfo, bcmath, gmp
- name: Install tools
run: sudo apt-get install -y ant

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);
}

View File

@@ -8,7 +8,7 @@ if (file_exists('/etc/froxlor-test.pwd') && file_exists('/etc/froxlor-test.rpwd'
$rpwd = trim(file_get_contents('/etc/froxlor-test.rpwd'));
define('TRAVIS_CI', 0);
} else {
// travis-ci.org
// github actions
$pwd = 'fr0xl0r.TravisCI';
$rpwd = 'fr0xl0r.TravisCI';
define('TRAVIS_CI', 1);