From 7949bb5580ed44db9da64bd4bfe7420bbbb7234a Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 23 May 2016 14:58:54 +0200 Subject: [PATCH] expectedLegend attribute --- src/Deblan/CsvValidator/Validator.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Deblan/CsvValidator/Validator.php b/src/Deblan/CsvValidator/Validator.php index 52459cd..8ee6624 100644 --- a/src/Deblan/CsvValidator/Validator.php +++ b/src/Deblan/CsvValidator/Validator.php @@ -43,6 +43,11 @@ class Validator * @var array */ protected $errors = []; + + /** + * @var array + */ + protected $expectedLegend = []; /** * Constructor @@ -125,7 +130,7 @@ class Validator return; } - if (null === $this->expectedLegend) { + if (empty($this->expectedLegend)) { return; }