Skip to content

Commit

Permalink
改进分页类
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jul 14, 2021
1 parent 375a3b1 commit 64bbfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paginator.php
Expand Up @@ -175,7 +175,7 @@ protected function url(int $page): string
$path = $this->options['path'];
} else {
$parameters = [];
$path = str_replace('[PAGE]', $page, $this->options['path']);
$path = str_replace('[PAGE]', (string) $page, $this->options['path']);
}

if (count($this->options['query']) > 0) {
Expand Down

0 comments on commit 64bbfdd

Please sign in to comment.