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

PHP fatal error: Class Brick\Math\RoundingMode not found #437

Open
ingenuityon opened this issue Aug 18, 2022 · 4 comments
Open

PHP fatal error: Class Brick\Math\RoundingMode not found #437

ingenuityon opened this issue Aug 18, 2022 · 4 comments
Labels

Comments

@ingenuityon
Copy link

Description

I'm not sure what's happening, the class is present in the directory, but out of the blue I started getting this RoundingMode class not found error.

Steps to reproduce

I just try and run the app that uses the Ramsey UUID package.

Expected behavior

it just runs up until today

Screenshots or output

Fatal error: Uncaught Error: Class "Brick\Math\RoundingMode" not found in /Users/galentucker/Dropbox/Business/Provident Enterprises/PGE_htdocs/PGEBingo/vendor/ramsey/uuid/src/FeatureSet.php:167
Stack trace:
#0 /Users/galentucker/Dropbox/Business/Provident Enterprises/PGE_htdocs/PGEBingo/vendor/ramsey/uuid/src/UuidFactory.php(108): Ramsey\Uuid\FeatureSet->__construct()
#1 /Users/galentucker/Dropbox/Business/Provident Enterprises/PGE_htdocs/PGEBingo/vendor/ramsey/uuid/src/Uuid.php(406): Ramsey\Uuid\UuidFactory->__construct()
#2 /Users/galentucker/Dropbox/Business/Provident Enterprises/PGE_htdocs/PGEBingo/vendor/ramsey/uuid/src/Uuid.php(668): Ramsey\Uuid\Uuid::getFactory()
#3 /Users/galentucker/Dropbox/Business/Provident Enterprises/PGE_htdocs/PGEBingo/Core/Classes/BingoSheet.php(141): Ramsey\Uuid\Uuid::uuid6()

Environment details

I'm running in PHP Storm on MacOS 12.5, with MAMP Pro 6.6.2. PHP version 8.1.0

Additional context

Nothing changed in my environment to my knowledge. It was working, and today... this. I've tried updating to the latest UUID 4.4.0 using composer. didn't help.

@ramsey
Copy link
Owner

ramsey commented Dec 19, 2022

I'm not able to reproduce this. Are you still having this issue?

@ramsey
Copy link
Owner

ramsey commented Apr 15, 2023

Are you still experiencing this problem?

@Sebobo
Copy link

Sebobo commented May 2, 2024

I have a similar issue since a few days but only in a production instance, not during local development:

Exception in line 74 of /var/.../Packages/Libraries/ramsey/uuid/src/UuidFactory.php: Class "Brick\Math\RoundingMode" not found

But I don't even see RoundingMode being used in the mentioned class.
PHP cache was cleared, vm restarted etc.

ramsey/uuid: 4.7.6
PHP: 8.1.27
Debian 5.10

@Sebobo
Copy link

Sebobo commented May 2, 2024

Somehow resolved it by upgrading composer from 2.0.9 to 2.7.4 on the system that had the issue

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

3 participants