Actions
Feature #77861
closedPHPdoc array types for controller action param
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