We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f411993 + fc02a78 commit fd6fa59Copy full SHA for fd6fa59
composer.json
@@ -24,7 +24,7 @@
24
}
25
},
26
"require": {
27
- "php": ">=7.1",
+ "php": ">=7.1 <8.2",
28
"psr/http-client": "^1.0",
29
"psr/http-message": "^1.0",
30
"php-http/httplug": "^1.1 || ^2.0",
src/Pagination/PageFactory.php
@@ -58,7 +58,7 @@ private function addFullUri(array $data): array
58
foreach ($value as $subKey => $subValue) {
59
if (is_string($subValue) && 0 === strpos($subValue, '/')) {
60
$value[$subKey]['href'] = $this->uriGenerator->generate(urldecode($subValue));
61
- } elseif (0 === strpos(current($subValue), '/')) {
+ } elseif ($subValue !== null && 0 === strpos(current($subValue), '/')) {
62
$value[$subKey]['href'] = $this->uriGenerator->generate(urldecode(current($subValue)));
63
64
0 commit comments