Skip to content

Commit

Permalink
Enforce exact matching
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Oct 4, 2023
1 parent 184ddf4 commit 97b1cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/UnusedGetParameterListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ static function (string $parameter): string {
),
);

return sprintf('#^%s$#i', implode('|', $pattern));
return sprintf('#^(%s)$#i', implode('|', $pattern));
}
}

0 comments on commit 97b1cc1

Please sign in to comment.