forked from mirror/pixelfed
Update HashidService.php
fix php 7.4 requirement, which causes the error `ERROR: Array and string offset access syntax with curly braces is deprecated {"userId":1,"exception":"[object] (ErrorException(code: 0): Array and string offset access syntax with curly braces is deprecated at /var/www/ap p/Services/HashidService.php:24)`
This commit is contained in:
parent
1251c2c976
commit
8aa97dec0c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue