Unexpected `use*` methods input is not handled
Closed this issue · 0 comments
faissaloux commented
use Valorin\Random\Random;
$generator = Random::useLower(range('A', 'f'));
$string = $generator->string(
$length = 10,
$lower = true,
$upper = false,
$numbers = false,
$symbols = false,
$requireAll = false
);
This makes the Generator pass through all upperse, lowecase ans symbols in between.
It returns string(10) "[CZbEeDaIa"
While I am expecting to return only lowercases since it's the only active option.
PS: Same issue with all the methods when the input is not what expected.