Skip to content

Commit 2c42885

Browse files
authored
Update Str.php
1 parent c308c63 commit 2c42885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Str.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function after($subject, $search, $occurrence = 1, $caseSensitive
4444
$positions = $caseSensitive ? static::positions($subject, $search) : static::ipositions($subject, $search);
4545

4646
if ($occurrence == self::LAST) {
47-
$occurrence = getLastKey($positions);
47+
$occurrence = get_last_key($positions);
4848
}
4949

5050
if (empty($positions[$occurrence])) {
@@ -70,7 +70,7 @@ public static function before($subject, $search, $occurrence = self::LAST, $case
7070
$positions = $caseSensitive ? static::positions($subject, $search) : static::ipositions($subject, $search);
7171

7272
if ($occurrence == self::LAST) {
73-
$occurrence = getLastKey($positions);
73+
$occurrence = get_last_key($positions);
7474
}
7575

7676
if (empty($positions[$occurrence])) {

0 commit comments

Comments
 (0)