vinkla/hashids

Decoding a hased string returns an empty array (PHP7.2, Ubuntu 18.04)

Hiroki111 opened this issue · 2 comments

When I was using PHP 7.1 on Ubuntu 16 (Linux), Hashids::decode() was working fine.

However, after I started to use PHP 7.2. on Ubuntu 18.04, Hashids::decode() got an issue.

screenshot from 2019-01-18 21-01-51

As you can see, I made a function in which a hased string is going to be decoded with Hashids::decode.

This sometimes works,
screenshot from 2019-01-18 21-03-18

... but sometimes returns an empty array (5 or 6 times out of 10 times).
screenshot from 2019-01-18 21-03-36

Has someone encountered a similar issue?
I've referred to this and this, but has still no luck.

PS
This error hasn't happened in PHPUnit.

Could your create a concrete testable example with this problem?
Do you have test without Laravel Facade?

Closing due to inactivity.