Skip to content

Commit 422ef37

Browse files
author
Gautier Masdupuy
committed
Add condition for compatibility with php 8.1
1 parent f411993 commit 422ef37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pagination/PageFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function addFullUri(array $data): array
5858
foreach ($value as $subKey => $subValue) {
5959
if (is_string($subValue) && 0 === strpos($subValue, '/')) {
6060
$value[$subKey]['href'] = $this->uriGenerator->generate(urldecode($subValue));
61-
} elseif (0 === strpos(current($subValue), '/')) {
61+
} elseif ($subValue !== null && 0 === strpos(current($subValue), '/')) {
6262
$value[$subKey]['href'] = $this->uriGenerator->generate(urldecode(current($subValue)));
6363
}
6464
}

0 commit comments

Comments
 (0)