mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 12:56:15 +03:00
Add a missing variable initialisation
This commit is contained in:
parent
b4c3dcd6ae
commit
79482bf7a2
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ trait RouteDescriberTrait
|
|||
*/
|
||||
private function getOperations(Swagger $api, Route $route): array
|
||||
{
|
||||
$operations = [];
|
||||
$path = $api->getPaths()->get($this->normalizePath($route->getPath()));
|
||||
$methods = $route->getMethods() ?: Swagger::$METHODS;
|
||||
foreach ($methods as $method) {
|
||||
|
|
Loading…
Add table
Reference in a new issue