Project

General

Profile

Actions

Feature #77861

closed

PHPdoc array types for controller action param

Added by Matthias Vogel about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Category:
Extbase
Target version:
-
Start date:
2016-09-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions

Also available in: Atom PDF