我尝试在 TYPO3 9.5.7 中使用 pits_downloadcenter 扩展,当我尝试在前端查看页面时出现以下错误:
Doctrine\Common\Annotations\AnnotationException [语义错误] PITS\PitsDownloadcenter\Controller\DownloadController::forceDownloadAction() 方法中的注释“@void”从未被导入。您是否可能忘记为此注释添加“使用”语句?
我在扩展中添加了一个拉取请求,可以在这里找到:https ://github.com/hojaonline/pits_downloadcenter/pull/23/files
改变相当容易
--- a/Classes/Controller/DownloadController.php
+++ b/Classes/Controller/DownloadController.php
@@ -185,7 +185,7 @@ public function showAction()
* force download file
* by decrypting the file uid
*
- * @void
+ * @return void
*/
public function forceDownloadAction()
{