PHP 8.1: Implicit incompatible float to int conversion is deprecated
PHP 8.1: Implicit incompatible float to int conversion is deprecated

In PHP 8.1 floats are not implicitly converted to integers as before. 
The array_slice on line 139 requires an integer as the third parameter (the $count variable) so added line 117 to do the conversion of $count.
joshtronic/php-loremipsum