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 #1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49874

Actions #2

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49874

Actions #3

Updated by Gerrit Code Review about 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49874

Actions #4

Updated by Gerrit Code Review over 7 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49874

Actions #5

Updated by Gerrit Code Review over 7 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49874

Actions #6

Updated by Gerrit Code Review over 7 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49874

Actions #7

Updated by Oliver Hader almost 7 years ago

  • Sprint Focus set to On Location Sprint
Actions #8

Updated by Mathias Brodala over 6 years ago

  • Status changed from Under Review to New
  • Sprint Focus deleted (On Location Sprint)

Change has been abandoned.

Actions #9

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

Hey,

we've reworked this logic in TYPO3 v10 and I think the thing you wanted to achieve is now doable because we have proper annotations (Doctrine) - can you let me know if this issue is now resolved for you? I'll close this issue for the time begin, but if you feel there is something more to do, I will re-open the ticket.

Thanks.
Benni.

Actions

Also available in: Atom PDF