#88636Controller action does not accept ObjectStorage<Model> parameter
Description
When I use parameter annotation for controller action like this:
/**
* @param ObjectStorage<Model> $param
*/
public function someAction(ObjectStorage $param = null)
{
//...
}
In ObjectStorageConverter target type is ObjectStorag and <model></model> is stripped off so converter is not able to handle converting.
Looks like it’s stripped off in TYPO3\CMS\Extbase\Mvc\Controller::initializeActionMethodArguments by reflection service
$methodParameters = $this->reflectionService
->getClassSchema(static::class)
->getMethod($this->actionMethodName)['params'] ?? [];
See slack thread about this [[https://typo3.slack.com/archives/C0CRS7RFH/p1561101916230200]]
PHP: 7.2
Typo3: 9.5.7
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Controller action does not accept ObjectStorage<Model> parameter Resolves: #88636 Releases: main