Is it possible to use Symfony's MapQueryString with validation for an array of integers?

Using this:

```
#[Assert\All(new Assert\Type('integer'))]
```

... I can't get arg[]=1234 to pass successfully.

If I change to Assert\Type('numeric') it "works", but the array contains the numbers as strings.

#php #symfony

@beausimensen To solve a problem like this, I created a custom `Integerish` constraint that allows integers as a string. Numeric is not ideal because it allows lots of different number formats.
@cmiles But did it cast the results to integer or did it still leave them as strings?

@beausimensen ah, sorry, I am not familiar with MapQueryString so misunderstood the problem.

I assume it uses reflection to know how to cast values. I can only guess that if it can cast the contents of an array, it could only do so based on phpdoc type hinting.

But I'm guessing.