Skip to content

Commit faf126b

Browse files
committed
chore: Add missing ArrayAccess type-hint to validate
1 parent 42bf5fc commit faf126b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Validatable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
interface Validatable
1515
{
1616
/**
17-
* @param array $data - Data to be validated
17+
* @param array|ArrayAccess $data - Data to be validated
1818
* @param object $model - Model to validate against
1919
*
2020
* @throws ValidationException - If the validation fails
2121
*/
22-
public function validate(array $data, object $model): object;
22+
public function validate(array|ArrayAccess $data, object $model): object;
2323

2424
/**
2525
* @param array|ArrayAccess $data - Data to be validated

0 commit comments

Comments
 (0)