```
->add('shots','file', array(
    'multiple' => true,
    **'constraints' => array(
        new Constraints\Image(array(
            'maxSize' => '10M',
            'allowSquare' => false,
            'allowPortrait' => false,
            'minRatio' => 1.43,
            'maxRatio' => 2.4
        )),
    )**
))

```

This is part of a symfony form with intgrated form validator. But I get an error I dont understand:

```
UnexpectedTypeException: Expected argument of type "string", "array" given

```

Without the **marked part** everthing does work. I checked the reference of the form constraints, but I didn't get the solution ...