expectedLegend attribute

This commit is contained in:
Simon Vieille 2016-05-23 14:58:54 +02:00
parent 36938bba66
commit 7949bb5580
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}