Skip to content

Commit a346431

Browse files
authored
Merge pull request #821 from matatirosolutions/pageNameParameterDefault
Provide default for $options variable
2 parents b7308c1 + 9c4d801 commit a346431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Twig/Extension/PaginationRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function filter(
114114
* @param array<string, mixed> $options
115115
* @return array<string, mixed>
116116
*/
117-
public function getQueryParams(array $query, int $page, array $options): array
117+
public function getQueryParams(array $query, int $page, array $options = []): array
118118
{
119119
$pageName = $this->pageName;
120120
if (isset($options['pageParameterName']) && is_string($options['pageParameterName'])) {

0 commit comments

Comments
 (0)