Skip to content

Commit 0e3fd21

Browse files
committed
merge options instead of set them directly
1 parent 98781fd commit 0e3fd21

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/jblond/Diff/Renderer/Text/UnifiedCli.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,23 @@ class UnifiedCli extends MainRendererAbstract
2727
*/
2828
private $colors;
2929

30+
/**
31+
* @var array Associative array containing the default options available for this renderer and their default
32+
* value.
33+
*/
34+
protected $subOptions = [];
35+
3036
/**
3137
* UnifiedCli constructor.
3238
* @param array $options
39+
*
3340
*/
3441
public function __construct(array $options = [])
3542
{
36-
parent::__construct($options);
43+
parent::__construct();
44+
$this->setOptions($this->subOptions);
45+
$this->setOptions($options);
3746
$this->colors = new CliColors();
38-
$this->options = $options;
3947
}
4048

4149
/**

0 commit comments

Comments
 (0)