Skip to content

Commit

Permalink
Apply patch from DaveChild#55
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz committed Apr 2, 2024
1 parent b97e243 commit 3524f99
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 3524f99

Please sign in to comment.