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 42bf5fc commit faf126bCopy full SHA for faf126b
src/Validatable.php
@@ -14,12 +14,12 @@
14
interface Validatable
15
{
16
/**
17
- * @param array $data - Data to be validated
+ * @param array|ArrayAccess $data - Data to be validated
18
* @param object $model - Model to validate against
19
*
20
* @throws ValidationException - If the validation fails
21
*/
22
- public function validate(array $data, object $model): object;
+ public function validate(array|ArrayAccess $data, object $model): object;
23
24
25
* @param array|ArrayAccess $data - Data to be validated
0 commit comments