This commit is contained in:
2021-04-06 18:23:40 +08:00
parent e8043c05c4
commit 9fc0b7f404
+2
View File
@@ -74,6 +74,7 @@ use Snowflake\Core\JSON;
use HttpServer\Http\Request; use HttpServer\Http\Request;
use HttpServer\Http\Response; use HttpServer\Http\Response;
use HttpServer\Controller; use HttpServer\Controller;
use use JetBrains\PhpStorm\ArrayShape;
use {$model_namespace}\\{$managerName}; use {$model_namespace}\\{$managerName};
"; ";
} }
@@ -198,6 +199,7 @@ use {$model_namespace}\\{$managerName};
* @return array * @return array
* @throws Exception * @throws Exception
*/ */
#[ArrayShape([])]
private function loadParam(): array private function loadParam(): array
{ {
return [' . $this->getData($fields) . ' return [' . $this->getData($fields) . '