Skip to content

Commit bd2a1a8

Browse files
committed
correct return type documentation on readTime
1 parent 604d2fa commit bd2a1a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static function readTime(
158158
- `$wpm` (int): Words per minute (default: 200)
159159

160160
#### Returns:
161-
- int: Estimated read time in seconds
161+
- float: Estimated read time in seconds
162162

163163
### [redactCreditCard](#redactcreditcard)
164164
Redacts credit card numbers in a string.

src/AdvStr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function advPassword($length = 32, $letters = true, $numbers = tru
7878
*
7979
* @param string $string
8080
* @param int $wpm
81-
* @return int
81+
* @return float
8282
*/
8383
public static function readTime($string, $wpm = 200)
8484
{

0 commit comments

Comments
 (0)