diff --git a/app/Services/HashidService.php b/app/Services/HashidService.php index d23c5c52d..81c15c24a 100644 --- a/app/Services/HashidService.php +++ b/app/Services/HashidService.php @@ -21,7 +21,7 @@ class HashidService { $shortcode = ''; while($id) { $id = ($id - ($r = $id % $base)) / $base; - $shortcode = $cmap{$r} . $shortcode; + $shortcode = $cmap[$r] . $shortcode; }; return $shortcode; }); @@ -47,4 +47,4 @@ class HashidService { return $id; } -} \ No newline at end of file +}