diff --git a/config/l5-swagger.php b/config/l5-swagger.php index 4fe5554..3d18860 100644 --- a/config/l5-swagger.php +++ b/config/l5-swagger.php @@ -103,21 +103,21 @@ 'scanOptions' => [ /** - * Configuration for default processors. Allows to pass processors configuration to swagger-php + * Configuration for default processors. Allows to pass processors configuration to swagger-php. * * @link https://zircote.github.io/swagger-php/reference/processors.html */ 'default_processors_configuration' => [ - /** Example */ - /** - 'operationId.hash' => true, - 'pathFilter' => [ - 'tags' => [ - '/pets/', - '/store/', - ], - ], - */ + /** Example */ + /** + * 'operationId.hash' => true, + * 'pathFilter' => [ + * 'tags' => [ + * '/pets/', + * '/store/', + * ], + * ],. + */ ], /** diff --git a/src/Generator.php b/src/Generator.php index e626592..78fcac7 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -204,7 +204,7 @@ protected function createOpenApiGenerator(): OpenApiGenerator // Only from zircote/swagger-php 4 if ( - !empty($this->scanOptions['default_processors_configuration']) + ! empty($this->scanOptions['default_processors_configuration']) && is_array($this->scanOptions['default_processors_configuration']) && method_exists($generator, 'setConfig') ) {