moneyphp / money

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

Add php8 support #622

Closed sspat closed 3 years ago

sspat commented 3 years ago

Closes #619

sagikazarmark commented 3 years ago

@sspat thanks! I'm gonna have to think about dropping PHP 5.6/7.x support a little (ie. should we make a new major release for that?). Other than that 👍

sspat commented 3 years ago

taggable-cache, exchanger, swap - all had major bumps with some api changes and deprecations so even if money will be updated as a minor version change to get php8 support, these dependencies will still need a major update with breaking changes.

PowerKiKi commented 3 years ago

should we make a new major release

No, this should not be a major release, because moneyphp/money's API is not changed by this PR. Composer will take care of selecting the appropriate version of moneyphp/money dependending on PHP version. There is not need to make this a major version.

And since it already is mentioned clearly in the changelog, there is nothing else to do than merge and and release as minor version.

frederikbosch commented 3 years ago

Only v4 will support PHP8.0+. Thank you for your effort and I am sorry I did not pay attention to this earlier on.