Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit d08343b

Browse files
authored
Merge pull request #7 from bjdelange/validator-typehint
Added array typehints to satisfy phpcs.
2 parents bb38d83 + 71d9eac commit d08343b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(Validation $validation)
2929
*
3030
* @throws \Lucid\Foundation\InvalidInputException
3131
*/
32-
public function validate($input, array $rules = [])
32+
public function validate(array $input, array $rules = [])
3333
{
3434
$validation = $this->validation($input, $rules);
3535

@@ -49,7 +49,7 @@ public function validate($input, array $rules = [])
4949
*
5050
* @return \Illuminate\Validation\Validator
5151
*/
52-
public function validation($input, array $rules = [])
52+
public function validation(array $input, array $rules = [])
5353
{
5454
if (empty($rules)) {
5555
$rules = $this->rules;

0 commit comments

Comments
 (0)