Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Aug 29, 2024
1 parent ecf2475 commit 6848ce8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,9 @@ protected function createOpenApiGenerator(): OpenApiGenerator
$generator = new OpenApiGenerator();

// Only from zircote/swagger-php 4
if (
! empty($this->scanOptions['default_processors_configuration'])
if (! empty($this->scanOptions['default_processors_configuration'])
&& is_array($this->scanOptions['default_processors_configuration'])
&& method_exists($generator, 'setConfig')
) {
&& method_exists($generator, 'setConfig')) {
$generator->setConfig($this->scanOptions['default_processors_configuration']);
}

Expand Down

0 comments on commit 6848ce8

Please sign in to comment.