ramsey / uuid

:snowflake: A PHP library for generating universally unique identifiers (UUIDs).

Home Page:https://uuid.ramsey.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ingenuityon opened this issue · comments

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.

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

Are you still experiencing this problem?

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

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