From e4fde211e619cc9895c6b7f22cbe6fe4fdb9443f Mon Sep 17 00:00:00 2001 From: Pyae Sone Aung <44226349+PyaeSoneAungRgn@users.noreply.github.com> Date: Sun, 4 Sep 2022 19:42:19 +0000 Subject: [PATCH] support under php 7.4 --- src/Support/LaravelMyanmarTools/Nrc.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Support/LaravelMyanmarTools/Nrc.php b/src/Support/LaravelMyanmarTools/Nrc.php index bb3be26..3a30f63 100644 --- a/src/Support/LaravelMyanmarTools/Nrc.php +++ b/src/Support/LaravelMyanmarTools/Nrc.php @@ -111,16 +111,8 @@ public function normalizeNrc(string $lang = 'en'): string protected function convert(string $nrc, string $type): string { $nrc = str_replace(static::NAING, static::N, strtoupper($nrc)); - $en = [ - ...static::EN_TYPES, - ...static::EN_NUMS, - ...static::EN_CHARS - ]; - $mm = [ - ...static::MM_TYPES, - ...static::MM_NUMS, - ...static::MM_CHARS - ]; + $en = array_merge(static::EN_TYPES, static::EN_NUMS, static::EN_CHARS); + $mm = array_merge(static::MM_TYPES, static::MM_NUMS, static::MM_CHARS); if ($type == static::EN_TO_MM) { $en = array_reverse($en); $mm = array_reverse($mm);