moneyphp / money

PHP implementation of Fowler's Money pattern.
http://moneyphp.org
MIT License
4.62k stars 440 forks source link

not working for php version 8.2.1 #736

Closed peeter2 closed 1 year ago

peeter2 commented 1 year ago

not working on the latest php version

frederikbosch commented 1 year ago

Why not?

peeter2 commented 1 year ago

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 :(

frederikbosch commented 1 year ago

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

hyphen81 commented 6 months ago

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