Skip to content

Commit 2bd198f

Browse files
committed
fix: Adds support for passing the class name as model
1 parent 422d3c1 commit 2bd198f

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
@@ -15,11 +15,11 @@ interface Validatable
1515
{
1616
/**
1717
* @param array|ArrayObject $data - Data to be validated
18-
* @param object $model - Model to validate against
18+
* @param string|object $model - Model to validate against
1919
*
2020
* @throws ValidationException - If the validation fails
2121
*/
22-
public function validate(array|ArrayObject $data, object $model): object;
22+
public function validate(array|ArrayObject $data, string|object $model): object;
2323

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

0 commit comments

Comments
 (0)