-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add deprecated currencies (GWY-14291) #7
Conversation
src/Currency.php
Outdated
{ | ||
return array_filter( | ||
self::$currencies, | ||
function ($currencyCode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function ($currencyCode) { | |
static function (array $currency): bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why static?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it static?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
micro-optimization 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meaningful code :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it doesn't make much difference in this case, since i'm not using self::$currencies
anymore
Co-Authored-By: Veaceslav Medvedev <slavcopost@gmail.com>
Details
Returning deprecated currencies back to the library.
deprecated
propertygetCurrencies()
method to return only active currenciesgetCurrenciesIncludingDeprecated()
method to get all the currenciesLinks
https://jira.ilabsinc.com/browse/GWY-14291