Skip to content

Clean up: use array_change_key_case()#795

Merged
wimg merged 1 commit intomasterfrom
feature/simpler-lowercase-array-keys
Mar 28, 2019
Merged

Clean up: use array_change_key_case()#795
wimg merged 1 commit intomasterfrom
feature/simpler-lowercase-array-keys

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 28, 2019

You learn something new every day. Never came across this function before, but definitely simplifies the Sniff::arrayKeysToLowercase() method.

Ref: https://php.net/manual/en/function.array-change-key-case.php

@jrfnl jrfnl added Type: chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review labels Mar 28, 2019
@jrfnl jrfnl added this to the 9.x Next milestone Mar 28, 2019
@jrfnl jrfnl requested a review from wimg March 28, 2019 07:35
@jrchamp
Copy link
Contributor

jrchamp commented Mar 28, 2019

I'm sorry - I'm very nit-picky. There is a small typo in the commit message: array_change_key_change() vs. array_change_key_case()

I hope this is helpful. I appreciate all the work you do on this project!

You learn something new every day. Never came across this function before, but definitely simplifies the `Sniff::arrayKeysToLowercase()` method.

Ref: https://php.net/manual/en/function.array-change-key-case.php
@jrfnl jrfnl force-pushed the feature/simpler-lowercase-array-keys branch from 45dd62e to ec077f4 Compare March 28, 2019 19:53
@jrfnl
Copy link
Member Author

jrfnl commented Mar 28, 2019

@jrchamp You are completely correct. Fixed now.

@jrfnl jrfnl changed the title Clean up: use array_change_key_change() Clean up: use array_change_key_case() Mar 28, 2019
@wimg wimg merged commit 8451ac2 into master Mar 28, 2019
@wimg wimg deleted the feature/simpler-lowercase-array-keys branch March 28, 2019 22:10
@jrfnl jrfnl removed the PR: quick merge PR only contains relatively simple changes label Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants