Skip to content

Commit b5e9652

Browse files
committed
Update Validator.php
Protected properties of the class make it easier to extend the class
1 parent 7a8f1d6 commit b5e9652

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SimpleValidator/Validator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
*/
1818
class Validator {
1919

20-
private $errors = array();
21-
private $namings = array();
22-
private $customErrorsWithInputName = array();
23-
private $customErrors = array();
20+
protected $errors = array();
21+
protected $namings = array();
22+
protected $customErrorsWithInputName = array();
23+
protected $customErrors = array();
2424

2525
/**
2626
* Constructor is not allowed because SimpleValidator uses its own

0 commit comments

Comments
 (0)