Skip to content

Commit

Permalink
Merge pull request #90 from heseya/bugfix/B2B-310
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
daVitekPL authored Oct 25, 2024
2 parents daf54eb + 921fbbf commit 67a11be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Helpers/TrimHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public static function trim(string $value, ?string $charlist = null): string
}

/**
* @param array<int|string, string> $array
* @param array<int|string, string|null> $array
*
* @return array<int|string, string>
* @return array<int|string, string|null>
*/
public static function trimArrayValues(array $array, ?string $charlist = null): array
{
foreach ($array as $key => $value) {
$array[$key] = self::trim($value, $charlist);
$array[$key] = $value ? self::trim($value, $charlist) : $value;
}

return $array;
Expand Down

0 comments on commit 67a11be

Please sign in to comment.