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 2424 }
2525 },
2626 "require" : {
27- "php" : " >=7.1" ,
27+ "php" : " >=7.1 <8.2 " ,
2828 "psr/http-client" : " ^1.0" ,
2929 "psr/http-message" : " ^1.0" ,
3030 "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
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 }
You can’t perform that action at this time.
0 commit comments