moneyphp / money

PHP implementation of Fowler's Money pattern.

Home Page:http://moneyphp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not working for php version 8.2.1

peeter2 opened this issue · comments

not working on the latest php version

Why not?

Because it requires older versions of PHP.
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",

too bad I have the latest version of php :(

That should work: ~8.2.0 means >= 8.2.0 && < 8.3.0.

For anyone else that might run into this problem as well. I was getting this error when trying to install the package and it also said I was missing the bcmath extension, which is on my docker environment. I ran the below command, ignoring the bcmath
extension, which allowed the package to be installed and appears to be working as expected.

composer require pelmered/filament-money-field --ignore-platform-req=ext-bcmath