Closed vjik closed 8 months ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Introduction of replaceKey
method in ArrayHelper
class
We now have a new functionality available in our ArrayHelper
class. This new method, replaceKey
, lets us swap one key in an array with another, providing us with more flexibility in manipulating array data.
Inclusion of Test Case for replaceKey
method
To ensure that our new function is performing as expected, we've added an accompanying test case. This is contained within the new ReplaceKeyTest.php
file, ensuring we can reliably validate the correct behaviour of the replaceKey
utility.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.76%. Comparing base (
228e703
) to head (2a5593c
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Should we name it renameKey()
?
Should we name it
renameKey()
?
I don't know. For me both names are OK.
I'd make it renameKey()
.