Skip to content

Commit

Permalink
Extract child instructions (#44915)
Browse files Browse the repository at this point in the history
  • Loading branch information
maoleng authored Nov 14, 2022
1 parent 9391221 commit 571e02a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -1143,9 +1143,9 @@ public static function substrCount($haystack, $needle, $offset = 0, $length = nu
{
if (! is_null($length)) {
return substr_count($haystack, $needle, $offset, $length);
} else {
return substr_count($haystack, $needle, $offset);
}

return substr_count($haystack, $needle, $offset);
}

/**
Expand Down

0 comments on commit 571e02a

Please sign in to comment.