Skip to content

Commit 716695c

Browse files
authored
Merge pull request #14 from reedy/php84
URL2: Fix implicit null declaration
2 parents 493ef07 + 82f8273 commit 716695c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Net/URL2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ private function _queryArrayByKey($key, $value, array $array = array())
549549
// array
550550
$brackets = substr($key, $offset);
551551
if (!isset($array[$name])) {
552-
$array[$name] = null;
552+
$array[$name] = array();
553553
}
554554
$array[$name] = $this->_queryArrayByBrackets(
555555
$brackets, $value, $array[$name]
@@ -569,7 +569,7 @@ private function _queryArrayByKey($key, $value, array $array = array())
569569
* @throws Exception
570570
* @return array
571571
*/
572-
private function _queryArrayByBrackets($buffer, $value, array $array = null)
572+
private function _queryArrayByBrackets($buffer, $value, array $array)
573573
{
574574
$entry = &$array;
575575

0 commit comments

Comments
 (0)