Issue Feature Closed

#77861PHPdoc array types for controller action param

Matthias Vogel 09/06/16, 15:01 updated 03/16/20, 17:36

Description

I have got this Error Message:

Exception while property mapping at property path "": Could not find a suitable type converter for "int[]" because no such class or interface exists.

https://phpdoc.org/docs/latest/references/phpdoc/types.html#arrays
I would expect that I can write it like this:

    /**
     * @param int[] $products
     * @return void
     */
    public function compareAction($products)

But I have to write it like this:

    /**
     * @param array $products
     * @return void
     */
    public function compareAction($products)

Reviews 1