Created
August 17, 2017 07:20
-
-
Save willemnviljoen/d20ad8ad0cc365a7e80744328246610f to your computer and use it in GitHub Desktop.
SQL language injection for PHPStorm which specifically ignores the Doctrine DQL language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LanguageInjectionConfiguration> | |
<injection language="SQL" injector-id="php"> | |
<display-name>"SQL select/delete/insert/update/create" Excluding Doctrine DQL</display-name> | |
<place><![CDATA[and(not(phpLiteralMatchesBrics(".*:.*")), phpLiteralMatchesBrics(" *(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +((TEMPORARY )?TABLE|(UNIQUE )?INDEX))) .*"))]]></place> | |
</injection> | |
</LanguageInjectionConfiguration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May be we can just pull this to core PhpStorm for now?.. //PS team