PHP-CLI-Progress-Bar
PHP-CLI-Progress-Bar copied to clipboard
update() only accepts integers
update() only accepts integers while outputting progress bar uses number_format($percent,2) which gives it two decimal places.
I don't really understand this issue. Can you please provide a scenario ? Thanks.
you are unable to pass a value such as 12.5 into update() as you check if the value is_int() and reject it, if you display the progress with 2 decimal places you should probably have this changed.