From d9bd45f4f1aeb3d6dbdfcb86efba7e9daec442b2 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sat, 23 Dec 2017 14:59:23 +0900 Subject: [PATCH] Fix unit tests --- src/PhpSpreadsheet/Style/Style.php | 2 +- src/PhpSpreadsheet/Style/Supervisor.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Style/Style.php b/src/PhpSpreadsheet/Style/Style.php index 19fddcef..247aed0f 100644 --- a/src/PhpSpreadsheet/Style/Style.php +++ b/src/PhpSpreadsheet/Style/Style.php @@ -82,7 +82,7 @@ class Style extends Supervisor */ public function __construct($isSupervisor = false, $isConditional = false) { - parent::__construct($this->isSupervisor); + parent::__construct($isSupervisor); // Initialise values $this->conditionalStyles = []; diff --git a/src/PhpSpreadsheet/Style/Supervisor.php b/src/PhpSpreadsheet/Style/Supervisor.php index 3c7abc60..53be0851 100644 --- a/src/PhpSpreadsheet/Style/Supervisor.php +++ b/src/PhpSpreadsheet/Style/Supervisor.php @@ -3,6 +3,7 @@ namespace PhpOffice\PhpSpreadsheet\Style; use PhpOffice\PhpSpreadsheet\IComparable; +use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; abstract class Supervisor implements IComparable {