Skip to content

Commit

Permalink
Remove FCQN backslash
Browse files Browse the repository at this point in the history
Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
kylekatarnls and crynobone committed Jan 22, 2024
1 parent 81ea4b5 commit be6f8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Carbon.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Carbon extends BaseCarbon
*/
public static function createFromId($id)
{
if (\is_string($id)) {
if (is_string($id)) {
$id = Ulid::isValid($id) ? Ulid::fromString($id) : Uuid::fromString($id);
}

Expand Down

0 comments on commit be6f8a6

Please sign in to comment.