diff --git a/Utils/RnG/Text.php b/Utils/RnG/Text.php index d553557fd..cdafb1aaa 100644 --- a/Utils/RnG/Text.php +++ b/Utils/RnG/Text.php @@ -144,7 +144,7 @@ class Text }, $punctuation ) - ) + ['.' => 0, '!' => 0, '?' => '?']; + ) + ['.' => 0, '!' => 0, '?' => 0]; $this->sentences = $punctuation_count['.'] + $punctuation_count['!'] + $punctuation_count['?'];