Skip to content

Commit 4aa79f6

Browse files
committed
Fix issues with README
1 parent 499ac4b commit 4aa79f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ use Noname\Common\Validator;
153153

154154
$values = ['a' => 2];
155155
$rules = ['a' => ['type' => 'equals_2']];
156-
$validator = new Validator();
156+
$validator = new Validator($values, $rules);
157157
$validator->addType('equals_2', [
158158
'extends' => 'numeric',
159159
'validator' => function ($value, $rule, $validator) {
@@ -250,6 +250,6 @@ A helper library for working with arrays.
250250

251251
#### Arr Methods
252252

253-
##### `Arr::flatten(array $array, string $separator = '.', string $prepend = '') : array`
253+
##### `static flatten(array $array, string $separator = '.', string $prepend = '') : array`
254254

255255
Flatten an associative array using a custom separator.

0 commit comments

Comments
 (0)