-
-
Notifications
You must be signed in to change notification settings - Fork 501
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\Nonstandard namespace conflicts with itself in standalone builds #490
Labels
Comments
Ph0tonic
added a commit
to Ph0tonic/uuid
that referenced
this issue
Feb 17, 2023
Ph0tonic
added a commit
to Ph0tonic/uuid
that referenced
this issue
Feb 17, 2023
ramsey
pushed a commit
that referenced
this issue
Apr 15, 2023
7 tasks
The fix for this is released in version 4.7.4. Thank you for your patience. Thank you, @Ph0tonic, for the patch! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This library is used by Google Cloud APIs (BigQuery in particular). When this library is imported as part of a standalone build, the Nonstandard namespace conflicts with itself.
Description
Ramsey\Uuid\Nonstandard
creates aUuid
class that conflicts withRamsey\Uuid\Uuid
whenuse Ramsey\Uuid\Uuid
is encountered later in the same namespace by PHP because "Uuid" is already defined as a class. PHP has no idea which class to use and so it throws up a Fatal error.Steps to reproduce
PHP Fatal error: Cannot use Ramsey\Uuid\Uuid as Uuid because the name is already in use in C:\php-decomposer\projects\google-cloud-apis\final\google-cloud-apis_decomposed.php on line 47783
.Expected behavior
Non-conflicting namespace and class names.
Suggested fix
In
vendor\ramsey\uuid\src\Nonstandard\UuidV6.php
, change:To:
The text was updated successfully, but these errors were encountered: