You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Inspired by [Params::Validate](http://search.cpan.org/perldoc/Params::Validate)
6
6
You can use it to validate almost anything, but typically it can be used for (strictly) validating input from HTML forms, fields while reading CSV files, function parameters, etc.
7
7
8
8
### Requirements
9
-
* PHP 5.4 or later
9
+
* PHP 7.1 or later
10
10
11
11
### Installation
12
12
Download or checkout from git, or install the packagist package cmanley/validate.
* @license http://www.opensource.org/licenses/mit-license.php Licensed under MIT
8
8
*/
9
9
namespaceValidate;
@@ -85,12 +85,12 @@ class Spec {
85
85
*
86
86
* The following options are supported:
87
87
* <pre>
88
-
* allow_empty : boolean, allow empty strings to be validated and pass 'optional' check.
88
+
* allow_empty : bool, allow empty strings to be validated and pass 'optional' check.
89
89
* before : Callback that takes a reference to the value as argument so that it can mutate it before validation. It may trigger validation failure by returning boolean false.
90
90
* after : Callback that takes a reference to the value as argument so that it can mutate it after validation. It may trigger validation failure by returning boolean false.
91
91
* default : Any non-null value; null arguments to validate() are replaced with this
92
-
* optional : boolean, if true, then null values are allowed
93
-
* trim : boolean, if true, then whitespace is trimmed off both ends of string values before validation.
92
+
* optional : bool, if true, then null values are allowed
93
+
* trim : bool, if true, then whitespace is trimmed off both ends of string values before validation.
94
94
* description : Optional description that can be used by user code.
95
95
* validation : Validation (constraints) object used to validate non-null values.
0 commit comments