Skip to content

Commit

Permalink
Merge pull request #14 from reedy/php84
Browse files Browse the repository at this point in the history
URL2: Fix implicit null declaration
  • Loading branch information
ashnazg authored Dec 7, 2024
2 parents 493ef07 + 82f8273 commit 716695c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Net/URL2.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private function _queryArrayByKey($key, $value, array $array = array())
// array
$brackets = substr($key, $offset);
if (!isset($array[$name])) {
$array[$name] = null;
$array[$name] = array();
}
$array[$name] = $this->_queryArrayByBrackets(
$brackets, $value, $array[$name]
Expand All @@ -569,7 +569,7 @@ private function _queryArrayByKey($key, $value, array $array = array())
* @throws Exception
* @return array
*/
private function _queryArrayByBrackets($buffer, $value, array $array = null)
private function _queryArrayByBrackets($buffer, $value, array $array)
{
$entry = &$array;

Expand Down

0 comments on commit 716695c

Please sign in to comment.