Skip to content

[5.4] Suppress error if calling Str::replaceFirst with an empty search - #19427

Merged
taylorotwell merged 1 commit into
laravel:5.4from
vlakoff:replaceFirst
Jun 1, 2017
Merged

[5.4] Suppress error if calling Str::replaceFirst with an empty search#19427
taylorotwell merged 1 commit into
laravel:5.4from
vlakoff:replaceFirst

Conversation

@vlakoff

@vlakoff vlakoff commented May 31, 2017

Copy link
Copy Markdown
Contributor

Interestingly enough, strpos('foobar', '') triggers a warning whereas strrpos('foobar', '') (used in replaceLast) doesn't.

@taylorotwell
taylorotwell merged commit b505ba4 into laravel:5.4 Jun 1, 2017
@vlakoff
vlakoff deleted the replaceFirst branch June 1, 2017 03:44
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.

2 participants