mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-10 11:39:25 +03:00
Merge pull request #1208 from nelmio/GuilhemN-patch-1
Add a missing variable initialisation
This commit is contained in:
commit
819cbe354f
@ -27,6 +27,7 @@ trait RouteDescriberTrait
|
|||||||
*/
|
*/
|
||||||
private function getOperations(Swagger $api, Route $route): array
|
private function getOperations(Swagger $api, Route $route): array
|
||||||
{
|
{
|
||||||
|
$operations = [];
|
||||||
$path = $api->getPaths()->get($this->normalizePath($route->getPath()));
|
$path = $api->getPaths()->get($this->normalizePath($route->getPath()));
|
||||||
$methods = $route->getMethods() ?: Swagger::$METHODS;
|
$methods = $route->getMethods() ?: Swagger::$METHODS;
|
||||||
foreach ($methods as $method) {
|
foreach ($methods as $method) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user