Skip to content

Conversation

cosmastech
Copy link
Contributor

@cosmastech cosmastech commented Oct 10, 2025

To close #57328

Most of the places within the app use (string) Str::uuid(). While there are now typehints on Str::createUuidUsing(), they are just docblocks and cannot be strictly enforced.

Now users who want to leverage NotificationFake in conjunction with Str::createUuidsUsing(fn () => 'dis-my-uuid-tho') can.

@cosmastech cosmastech changed the title [12.x] do not assume Str::uuid() returns Stringable [12.x] Do not assume Str::uuid() returns Stringable Oct 10, 2025
@taylorotwell taylorotwell merged commit 7baabc9 into laravel:12.x Oct 10, 2025
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't use Str::createUuidsUsing() with Notification::fake()

2 participants