Skip to content

Commit 53b3d80

Browse files
committed
Fix failing test
1 parent 0521ec2 commit 53b3d80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/generators/JsonActionGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class JsonActionGenerator extends RestActionGenerator
2626
* @throws \yii\base\InvalidConfigException
2727
* @throws \cebe\openapi\exceptions\UnresolvableReferenceException
2828
*/
29-
protected function prepareAction(string $method, Operation $operation, RouteData $routeData):BaseObject
29+
protected function prepareAction(string $method, Operation $operation, RouteData $routeData, $customRoute = null):BaseObject
3030
{
3131
$actionType = $this->resolveActionType($routeData, $method);
3232
$modelClass = ResponseSchema::guessModelClass($operation, $actionType);

src/lib/generators/RestActionGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function resolvePath(string $path, PathItem $pathItem):array
9090
* @throws \cebe\openapi\exceptions\UnresolvableReferenceException
9191
* @throws \yii\base\InvalidConfigException
9292
*/
93-
protected function prepareAction(string $method, Operation $operation, RouteData $routeData, $customRoute):BaseObject
93+
protected function prepareAction(string $method, Operation $operation, RouteData $routeData, $customRoute = null):BaseObject
9494
{
9595
$actionType = $this->resolveActionType($routeData, $method);
9696
$modelClass = ResponseSchema::guessModelClass($operation, $actionType);

0 commit comments

Comments
 (0)