Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database prefixes in PHPSTORM_META #59

Closed
Niklan opened this issue Mar 6, 2021 · 2 comments
Closed

Database prefixes in PHPSTORM_META #59

Niklan opened this issue Mar 6, 2021 · 2 comments

Comments

@Niklan
Copy link
Contributor

Niklan commented Mar 6, 2021

PhpStorm 2021.1 will support Database prefixes. Should we add support for it?

namespace PHPSTORM_META {
  override(
    // Virtual function to indicate that all SQL
    // injections will have the following replacement rules.
    sql_injection_subst(),
    map([
      '{' => "PS2021_", // all `{` in injected SQL strings will be replaced with a prefix
      '}' => '',        // all `}` will be replaced with an empty string
    ]));
}

I can try to implement it.

@Chi-teck
Copy link
Owner

Chi-teck commented Mar 6, 2021

PR is welcome

@Niklan
Copy link
Contributor Author

Niklan commented Mar 7, 2021

@Chi-teck will do it next week then.

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 a pull request may close this issue.

2 participants