From 69477c53f0dd4e65529348b33e29684d37569c21 Mon Sep 17 00:00:00 2001 From: Martin Rademacher Date: Mon, 22 Jul 2024 12:41:26 +1200 Subject: [PATCH] Use array_search strict comparison (#1632) --- src/Processors/AugmentTags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);