diff --git a/src/Processors/AugmentTags.php b/src/Processors/AugmentTags.php index a8f63a4c..21eeb2c3 100644 --- a/src/Processors/AugmentTags.php +++ b/src/Processors/AugmentTags.php @@ -46,7 +46,7 @@ public function __invoke(Analysis $analysis) foreach ($declaredTags as $tag) { if (!in_array($tag->name, $usedTagNames)) { - if (false !== $index = array_search($tag, $analysis->openapi->tags)) { + if (false !== $index = array_search($tag, $analysis->openapi->tags, true)) { $analysis->annotations->detach($tag); unset($analysis->openapi->tags[$index]); $analysis->openapi->tags = array_values($analysis->openapi->tags);