We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499ac4b commit 4aa79f6Copy full SHA for 4aa79f6
README.md
@@ -153,7 +153,7 @@ use Noname\Common\Validator;
153
154
$values = ['a' => 2];
155
$rules = ['a' => ['type' => 'equals_2']];
156
-$validator = new Validator();
+$validator = new Validator($values, $rules);
157
$validator->addType('equals_2', [
158
'extends' => 'numeric',
159
'validator' => function ($value, $rule, $validator) {
@@ -250,6 +250,6 @@ A helper library for working with arrays.
250
251
#### Arr Methods
252
253
-##### `Arr::flatten(array $array, string $separator = '.', string $prepend = '') : array`
+##### `static flatten(array $array, string $separator = '.', string $prepend = '') : array`
254
255
Flatten an associative array using a custom separator.
0 commit comments