Skip to content

Commit

Permalink
Create Str::empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
onairmarc committed Nov 17, 2024
1 parent 29b3d1c commit 776a121
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Objects/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function concat(mixed ...$str): string
}

/**
* @param array<string, string> ...$str
* @param array<string, string> ...$str
*
* @deprecated No replacement.
*
Expand All @@ -40,9 +40,14 @@ public static function guid(): string
return Str::uuid()->toString();
}

public static function empty(): string
{
return '';
}

public static function toString(mixed $value): string
{
return (string) $value;
return (string)$value;
}

public static function maxLength(string $value, ?int $length = null): string
Expand Down

0 comments on commit 776a121

Please sign in to comment.