Skip to content

ext/snmp: rename argument number variables#21723

Merged
Girgias merged 3 commits intophp:masterfrom
prateekbhujel:prateekbhujel/snmp-meaningful-arg-names
Apr 13, 2026
Merged

ext/snmp: rename argument number variables#21723
Girgias merged 3 commits intophp:masterfrom
prateekbhujel:prateekbhujel/snmp-meaningful-arg-names

Conversation

@prateekbhujel
Copy link
Copy Markdown
Contributor

This is a readability-only follow-up to #21319.

It renames the internal argument-number variables added for error reporting so they describe what they represent more clearly, and replaces the inline SNMP::setSecurity() comment with named locals at the call site.

No behavior changes are intended.

Testing:

  • git diff --check

@prateekbhujel prateekbhujel requested a review from Girgias April 13, 2026 10:47
Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will let CI run and then merge :)

@Girgias Girgias merged commit d0167e7 into php:master Apr 13, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants