Skip to content

Commit cfba6f3

Browse files
committed
update, bug fixed
1 parent c45e40a commit cfba6f3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.idea/
2+
.phpintel/
3+
/vendor/
4+
!README.md
5+
!.gitkeep
6+
composer.lock
7+
*.swp
8+
*.swo
9+
.DS_Store

src/ValidationTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@ public function validate(array $onlyChecked = [], $hasErrorStop=false)
139139
throw new \InvalidArgumentException('Must be defined property \'data (array)\' in the classes used.');
140140
}
141141

142-
if ( $this->_hasValidated || !($data = $this->data) ) {
142+
if ( $this->_hasValidated ) {
143143
return $this;
144144
}
145145

146+
$data = $this->data;
147+
146148
$this->clearErrors()->beforeValidate();
147149
$this->hasErrorStop($hasErrorStop);
148150

0 commit comments

Comments
 (0)