Closed ameotoko closed 2 years ago
Calling Url::addQueryString() throws warning in PHP 8, if current URL does not have a query string:
Url::addQueryString()
Warning: Undefined array key 1
Happens here, because list() now throws warning instead of notice, if it receives an array with less elements than expected.
list()
https://github.com/codefog/contao-haste/blob/a880f7655ee61232ed1b9dad25c3e5cafb6f5093/library/Haste/Util/Url.php#L138-L142
Calling
Url::addQueryString()
throws warning in PHP 8, if current URL does not have a query string:Happens here, because
list()
now throws warning instead of notice, if it receives an array with less elements than expected.https://github.com/codefog/contao-haste/blob/a880f7655ee61232ed1b9dad25c3e5cafb6f5093/library/Haste/Util/Url.php#L138-L142