Inline Flag Override
Identifier: regex.lint.flag.override
When it triggers: An inline flag explicitly unsets a global modifier.
Example:
// WARNING: Unset global flag
preg_match('/(?-i:foo)/i', $input);
// CONSIDER: Scope the flag instead
preg_match('/(?i:foo)bar/', $input);
Try it. Open /(?-i:foo)/i in the playground: the finding is in the Diagnostics tab.