From 6848ce896152685b39e7afd7216e5497e80267b4 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Thu, 29 Aug 2024 08:42:04 +0300 Subject: [PATCH] cs --- src/Generator.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index 78fcac7..1086152 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -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']); }