Skip to content

Commit

Permalink
Fixed potential null exception when iterating over arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony authored May 7, 2020
1 parent 2641f1a commit dec78df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PHPixie/Debug/Tracer/Trace/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
$this->file = $file;
$this->line = $line;
$this->functionName = $functionName;
$this->arguments = $arguments;
$this->arguments = empty($arguments) ? array() : $arguments;
$this->className = $className;
$this->object = $object;
$this->type = $type;
Expand Down Expand Up @@ -216,4 +216,4 @@ protected function requireLineContents()
}
}

}
}

0 comments on commit dec78df

Please sign in to comment.