Skip to content

Commit

Permalink
cast
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Oct 25, 2023
1 parent 6924573 commit f0bb151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static function (Builder $query): Builder {
$value = is_null($match) ? $value : preg_replace_callback(
sprintf('/%s([\d]+)?$/', preg_quote($this->separator)),
static function (array $match): string {
return str_replace($match[1], ((int) $match[1]) + 1, $match[0]);
return str_replace($match[1], (string) (((int) $match[1]) + 1), $match[0]);
},
$match
);
Expand Down

0 comments on commit f0bb151

Please sign in to comment.