From 099bcdaf8f23b89ff043bce45b9a9a0f4c680d77 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 2 Jan 2022 22:46:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20starts=5Fwith=EC=97=90=20=EC=82=AC?= =?UTF-8?q?=EC=86=8C=ED=95=9C=20=EC=98=A4=EB=A5=98=EA=B0=80=20=EC=9E=88?= =?UTF-8?q?=EC=96=B4=EB=B3=B4=EC=9E=84=20-=20=EC=9D=B4=EC=9C=A0=EB=8A=94?= =?UTF-8?q?=20=EC=9E=98=20=EB=AA=A8=EB=A5=B4=EA=B2=A0=EC=A7=80=EB=A7=8C=20?= =?UTF-8?q?starts=5Fwith($this->destNation['name'],=20'=E2=93=A4')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Constraint/AllowJoinDestNation.php | 2 +- vendor/brandonwamboldt/utilphp/src/utilphp/util.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Constraint/AllowJoinDestNation.php b/hwe/sammo/Constraint/AllowJoinDestNation.php index f7e9ac9b..1acef977 100644 --- a/hwe/sammo/Constraint/AllowJoinDestNation.php +++ b/hwe/sammo/Constraint/AllowJoinDestNation.php @@ -50,7 +50,7 @@ class AllowJoinDestNation extends Constraint{ return false; } - if($this->general['npc']??2 < 2 && \sammo\Util::starts_with($this->destNation['name'], 'ⓤ')){ + if($this->general['npc']??2 < 2 && \str_starts_with($this->destNation['name'], 'ⓤ')){ $this->reason = "유저장은 태수국에 임관할 수 없습니다."; return false; } diff --git a/vendor/brandonwamboldt/utilphp/src/utilphp/util.php b/vendor/brandonwamboldt/utilphp/src/utilphp/util.php index 9be380ae..7d6d0f00 100644 --- a/vendor/brandonwamboldt/utilphp/src/utilphp/util.php +++ b/vendor/brandonwamboldt/utilphp/src/utilphp/util.php @@ -1000,7 +1000,7 @@ class util */ public static function starts_with($string, $starts_with) { - return strpos($string, $starts_with) === 0; + return str_starts_with($string, $starts_with); } /**