Skip to content

Commit 0009544

Browse files
committed
Deprecate CakeValidationFactory
1 parent babc9b1 commit 0009544

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Factory/CakeValidationFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* Cake Validation factory.
11+
*
12+
* @deprecated
1113
*/
1214
final class CakeValidationFactory
1315
{
@@ -30,6 +32,6 @@ public function createValidator(): Validator
3032
*/
3133
public function createValidationResult(array $errors): ValidationResult
3234
{
33-
return CakeValidationConverter::createValidationResult($errors);
35+
return (new CakeValidationConverter())->createValidationResult($errors);
3436
}
3537
}

0 commit comments

Comments
 (0)