aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php/injections.scm
blob: 18589331c66a10659f38119fe98519a512be650a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;; extends
(function_call_expression
    (
        (name) @_function (#eq? @_function "json_decode")
        (arguments (argument (string (string_content) @json )))
    )
)

(function_call_expression
    (
        (name) @_function (#eq? @_function "render")
        (arguments (argument (nowdoc (nowdoc_body) @html )))
    )
)