-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
As title, it seems that ReadingTime::minute
method result should be integer
type.
......
public function minutes()
{
return str_word_count($this->content) / $this->wordsPerMinute;
}
......
The original result will return float
type and it cannot be used directly after calculating reading time.
I think it should cast this result to be integer
type.
@DivineOmega, what do you think about that?
Metadata
Metadata
Assignees
Labels
No labels