forked from deblan/csv-validator
expectedLegend attribute
This commit is contained in:
parent
36938bba66
commit
7949bb5580
|
@ -44,6 +44,11 @@ class Validator
|
|||
*/
|
||||
protected $errors = [];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $expectedLegend = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
@ -125,7 +130,7 @@ class Validator
|
|||
return;
|
||||
}
|
||||
|
||||
if (null === $this->expectedLegend) {
|
||||
if (empty($this->expectedLegend)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue