1 | <?php |
||
16 | class HasGuessableExtensionValidator extends ConstraintValidator |
||
17 | { |
||
18 | /** |
||
19 | * @var ExtensionGuesserInterface |
||
20 | */ |
||
21 | private $extensionGuesser; |
||
22 | |||
23 | /** |
||
24 | * @var MimeTypeGuesserInterface |
||
25 | */ |
||
26 | private $mimeTypeGuesser; |
||
27 | |||
28 | /** |
||
29 | * @param $value |
||
30 | * @param Constraint $constraint |
||
31 | * |
||
32 | * @throws ConstraintDefinitionException |
||
33 | * @throws UnexpectedTypeException |
||
34 | */ |
||
35 | public function validate($value, Constraint $constraint) |
||
57 | |||
58 | /** |
||
59 | * @param ExtensionGuesserFactoryInterface $extensionGuesserFactory |
||
60 | */ |
||
61 | public function setExtensionGuesser(ExtensionGuesserFactoryInterface $extensionGuesserFactory) |
||
65 | |||
66 | /** |
||
67 | * @param MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory |
||
68 | */ |
||
69 | public function setMimeTypeGuesser(MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory) |
||
73 | } |
||
74 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..