Skip to content

Commit

Permalink
bug fix in hidingData
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid74 committed May 23, 2024
1 parent 0d17a58 commit 565fac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public static function generateUniqId(int $length = 5, string $prefix = ''): str
public static function hidingData($data = null, array $aDataToHide = []): string
{
if (empty($data) || (empty(static::$aDataToHide) && empty($aDataToHide))) {
return $data;
return $data ?: '';
}

$aDataToHide = empty(static::$aDataToHide)
Expand Down

0 comments on commit 565fac5

Please sign in to comment.