Skip to content

Commit 52873c0

Browse files
committed
Fix Creation of dynamic property in FromValidation class
1 parent c1d5e24 commit 52873c0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/FormValidation.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88
class FormValidation
99
{
10-
private $currentName,$fakeName=false,$currentValue,$errors=[],$list=[],$type;
10+
private $currentName;
11+
private $fakeName=false;
12+
private $currentValue;
13+
private $errors=[];
14+
private $list=[];
15+
private $type;
16+
private $messages;
1117

1218
public function field($name,$translation=false)
1319
{
@@ -228,6 +234,10 @@ private function initMessage($text,$customMessage=false)
228234
}
229235

230236
class GetError{
237+
238+
private $array;
239+
private $list;
240+
231241
public function set($array,$list)
232242
{
233243
$this->array = $array;

0 commit comments

Comments
 (0)