Skip to content

Commit 9d79475

Browse files
committed
fix types
1 parent 053016f commit 9d79475

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resources/lib/UnitySite.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public static function redirect($dest)
3636
public static function errorLog(
3737
string $title,
3838
string $message,
39-
string|null $errorid = null,
40-
Throwable|null $error = null,
39+
?string $errorid = null,
40+
?Throwable $error = null,
4141
mixed $data = null,
4242
) {
4343
if (!CONFIG["site"]["enable_verbose_error_log"]) {
@@ -83,7 +83,7 @@ private static function throwableToArray(Throwable $t): array
8383
private static function errorToUser(
8484
string $msg,
8585
int $http_response_code,
86-
string|null $errorid = null
86+
?string $errorid = null
8787
) {
8888
if (!CONFIG["site"]["enable_error_to_user"]) {
8989
return;

test/phpunit-bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function switchUser(
6161
string $given_name,
6262
string $sn,
6363
string $mail,
64-
string|null $session_id = null
64+
?string $session_id = null
6565
): void {
6666
global $REDIS, $LDAP, $SQL, $MAILER, $WEBHOOK, $GITHUB, $SITE, $SSO, $OPERATOR, $USER, $SEND_PIMESG_TO_ADMINS, $LOC_HEADER, $LOC_FOOTER;
6767
session_write_close();

0 commit comments

Comments
 (0)