Skip to content
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

Adds the ArrayAccess to Method Call set #218

Merged
merged 3 commits into from
Jun 2, 2024

Conversation

peterfox
Copy link
Collaborator

@peterfox peterfox commented May 7, 2024

Changes

  • Adds a new set called LARAVEL_ARRAYACCESS_TO_METHOD_CALL.
  • Updates the readme
  • Adds a test for the set

Why

In a few code bases things like $app['config'] is used but it's not great for type hinting. Instead this set will convert uses of ArrayAccess for the Application class and the Config Repository class. There's likely others but these two are the most common ones I can think of.

@peterfox peterfox self-assigned this May 7, 2024
@GeniJaho GeniJaho merged commit 50dd0cf into main Jun 2, 2024
5 checks passed
@GeniJaho GeniJaho deleted the feature/arrayacess-refactor-set branch June 2, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants