-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add
Str::substrReplace()
and `Str::of($string)->substrReplace…
…()` methods for the PHP native `substr_replace()` function (#39988) * Add substr_replace Str / Stringable helpers * Return a Stringable instead of a raw string * Add tests * Remove unused namespace * Follow the advice of Style CI by adding a dot at the end of a docblock sentence * Fix inconsistencies between PHP 7.3/7.4 and 8.0+ * Style
- Loading branch information
1 parent
6ffc63a
commit a9d70e6
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters