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

[10.x] Add ArrayAccess to Stringable #46279

Merged
merged 3 commits into from
Mar 1, 2023

Conversation

mathieutu
Copy link
Contributor

@mathieutu mathieutu commented Feb 26, 2023

Hi,

This little PR adds ArrayAccess to Stringable.

It allows to make its behavior more like a real string, by proxifying the calls.

- str('My StRinG')->lower()->value()[0]
+ str('My StRinG')->lower()[0]

Thanks,
Matt'

@driesvints driesvints changed the title [10.x] Add ArrayAccess to Stringable. [10.x] Add ArrayAccess to Stringable Mar 1, 2023
@taylorotwell taylorotwell merged commit 1dff6a3 into laravel:10.x Mar 1, 2023
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.

3 participants