Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
Default marker key should be an empty array by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraulle committed Jun 29, 2017
1 parent 59cc6a2 commit 0f133e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Utility/Trace.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ class Trace
* @param string $type Type of trace : can be either "bar", "pie" or "scatter"
* @param string|null $name Name of the series
* @param string|null $mode Line type ("markers", "lines" or "markers+line")
* @param array $marker Plot.ly option for markers
*/
public function __construct(array $x, array $y, string $type, string $name = null, string $mode = null, array $marker = null)
public function __construct(array $x, array $y, string $type, string $name = null, string $mode = null, array $marker = [])
{
$this->x = $x;
$this->y = $y;
Expand Down

0 comments on commit 0f133e6

Please sign in to comment.