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 5ec7892 commit 800ea00Copy full SHA for 800ea00
Extension/Validator/ValidatorExtension.php
@@ -59,13 +59,13 @@ public function __construct($validator)
59
60
public function loadTypeGuesser()
61
{
62
- // 2.4 API
63
- if ($this->validator instanceof LegacyValidatorInterface) {
64
- return new ValidatorTypeGuesser($this->validator->getMetadataFactory());
+ // 2.5 API
+ if ($this->validator instanceof ValidatorInterface) {
+ return new ValidatorTypeGuesser($this->validator);
65
}
66
67
- // 2.5 API - ValidatorInterface extends MetadataFactoryInterface
68
- return new ValidatorTypeGuesser($this->validator);
+ // 2.4 API
+ return new ValidatorTypeGuesser($this->validator->getMetadataFactory());
69
70
71
protected function loadTypeExtensions()
0 commit comments