From bf4b957bb6ace415634ddb25d7b2edad7f702aae Mon Sep 17 00:00:00 2001 From: Sunch <120295462+Sunch233@users.noreply.github.com> Date: Sun, 12 Jan 2025 20:29:49 +0800 Subject: [PATCH] more PHP8 features --- src/dependencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dependencies.php b/src/dependencies.php index 0e6613e7..0051b2e2 100644 --- a/src/dependencies.php +++ b/src/dependencies.php @@ -7,7 +7,7 @@ require_once(FILE_PATH . "/src/functions.php"); /***REM_END***/ define("DATA_PATH", realpath(arg("data-path", FILE_PATH)) . "/"); -if(arg("enable-ansi", !(strpos(strtoupper(php_uname("s")), "WIN") === 0)) === true and arg("disable-ansi", false) !== true){ +if(arg("enable-ansi", !(str_starts_with(strtoupper(php_uname("s")), "WIN"))) === true and arg("disable-ansi", false) !== true){ define("ENABLE_ANSI", true); }else{ define("ENABLE_ANSI", false);