Skip to content

Commit

Permalink
Use array_search strict comparison (zircote#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann authored Jul 22, 2024
1 parent 0840dad commit 69477c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Processors/AugmentTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69477c5

Please sign in to comment.