PUGX / shortid-php

An implementation of ShortId in PHP
MIT License
51 stars 7 forks source link

Feature: validate passed string #20

Closed garak closed 1 year ago

garak commented 2 years ago

When the object is created via new Shortid($string) there's no validation, currently. We should add a native exception, and raise it when the passed string is invalid.