File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 24
24
}
25
25
},
26
26
"require" : {
27
- "php" : " >=7.1" ,
27
+ "php" : " >=7.1 <8.2 " ,
28
28
"psr/http-client" : " ^1.0" ,
29
29
"psr/http-message" : " ^1.0" ,
30
30
"php-http/httplug" : " ^1.1 || ^2.0" ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ private function addFullUri(array $data): array
58
58
foreach ($ value as $ subKey => $ subValue ) {
59
59
if (is_string ($ subValue ) && 0 === strpos ($ subValue , '/ ' )) {
60
60
$ value [$ subKey ]['href ' ] = $ this ->uriGenerator ->generate (urldecode ($ subValue ));
61
- } elseif (0 === strpos (current ($ subValue ), '/ ' )) {
61
+ } elseif ($ subValue !== null && 0 === strpos (current ($ subValue ), '/ ' )) {
62
62
$ value [$ subKey ]['href ' ] = $ this ->uriGenerator ->generate (urldecode (current ($ subValue )));
63
63
}
64
64
}
You can’t perform that action at this time.
0 commit comments