Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DaveChild/TextStatistics/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Text
public static function cleanText($strText)
{

// Check for boolean before processing as string
if (is_bool($strText)) {
// Check for boolean OR null value before processing as string
if (is_bool($strText) || is_null($strText)) {
return '';
}

Expand Down