A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
5.28k
stars
418
forks
source link
TypeError: Unsupported operand types: int - string on PHP 8.1 #178
Closed
masroore closed 2 years ago
I'm getting the following error:
This is the offending line:
Somehow
int $minHashLength
becomes a string.FYI, in my
config/hashids.php
thelength
parameter is set as an int.Using PHP 8.1.4 (Laravel 8.83.5)
https://github.com/mtvs/eloquent-hashids/issues/24