Skip to content

Commit 4fb9021

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 73fed96 + ef386ea commit 4fb9021

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Swagger/GenerateParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function generate(): array
6969
}
7070

7171
$methodParameter = $this->methodParametersManager->getMethodParameter($this->controller, $this->action, $paramName);
72-
if ($parameterClassName === 'array' && $methodParameter->isRequestBody()) {
72+
if ($parameterClassName === 'array' && $methodParameter?->isRequestBody()) {
7373
$requestBody = new OA\RequestBody();
7474
$requestBody->required = true;
7575
$property = $this->methodParametersManager->getProperty($this->controller, $this->action, $paramName);

src/Swagger/SwaggerPaths.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ protected function getClassMethodPath(string $fullClassName, string $methodName)
148148
*/
149149
protected function getOperationId(string $route, string $methods): string
150150
{
151+
$route = str_replace(['{','}'], '', $route);
151152
$operationId = Str::camel(str_replace('/', '_', $route));
152153
if (empty($operationId)) {
153154
$operationId = '-';

0 commit comments

Comments
 (0)