vinkla / hashids

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.
https://hashids.org/php
MIT License
5.28k stars 418 forks source link

fix phpdoc types for encode method #188

Closed jamband closed 1 year ago

jamband commented 1 year ago

using a static analysis tool like phpstan will give you a type error. this bug occurs in version 5.0.0.

vinkla commented 1 year ago

Thanks Tomoki!

stof commented 1 year ago

@vinkla any chance to make a release with this fix ?

vinkla commented 1 year ago

https://github.com/vinkla/hashids/releases/tag/5.0.1

stof commented 1 year ago

thanks