Skip to content

Add brackets around string negations to make operator precedence explicit#1

Open
Arethusag wants to merge 3 commits into
dfishburn:mainfrom
Arethusag:main
Open

Add brackets around string negations to make operator precedence explicit#1
Arethusag wants to merge 3 commits into
dfishburn:mainfrom
Arethusag:main

Conversation

@Arethusag
Copy link
Copy Markdown

@Arethusag Arethusag commented Apr 19, 2026

This PR resolves operator precendence warnings raised by perl's 'use warnings;'. Cases where a negation symbol (!) preceeds a string comparison statement, the negation takes precedent, this behaviour is made more explicit by adding brackets, which also silences the warnings. The warnings were quite annoying since about 17 of them fired everytime the plugin connected to a database via the DBI api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant