Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\Ramsey\Uuid\Uuid::uuid4() does not return an instance implementing Ramsey\Uuid\Rfc4122\UuidInterface as per the docs #342

Closed
PeeHaa opened this issue Sep 15, 2020 · 1 comment
Labels

Comments

@PeeHaa
Copy link

PeeHaa commented Sep 15, 2020

The getting started guide says the following:

When using Ramsey\Uuid\Uuid::uuid4() it:

will return an instance of Ramsey\Uuid\Rfc4122\UuidV4.

However it does not.

var_dump(\Ramsey\Uuid\Uuid::uuid4() instanceof \Ramsey\Uuid\Rfc4122\UuidV4); // false

This is on current latest: 4.1.1

@PeeHaa PeeHaa added the bug label Sep 15, 2020
@PeeHaa PeeHaa changed the title \Ramsey\Uuid\Uuid::uuid4() does not return an instance implementing Ramsey\Uuid\Rfc4122\UuidInterface as per the docs \Ramsey\Uuid\Uuid::uuid4() does not return an instance implementing Ramsey\Uuid\Rfc4122\UuidInterface as per the docs Sep 15, 2020
@ramsey
Copy link
Owner

ramsey commented Sep 16, 2020

Please see the discussion on #327. This is a known issue that might be considered a documentation error, rather than a bug in the code. I'm still trying to decide what to do here.

@PeeHaa PeeHaa closed this as completed Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants