File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -51,3 +51,19 @@ services:
5151```
5252
5353__ the callable format is ` funtionName#parameterIndex ` , while the parameter-index defines the position of the query-string argument.__
54+
55+ ## use ` QueryPlanAnalyzerRule ` for your custom classes
56+
57+ Reuse the ` QueryPlanAnalyzerRule ` within your PHPStan configuration to detect syntax errors in queries, by registering a service:
58+
59+ -
60+ class: staabm\PHPStanDba\Rules\QueryPlanAnalyzerRule
61+ tags: [phpstan.rules.rule]
62+ arguments:
63+ classMethods:
64+ - 'myClass::query#0'
65+ - 'anotherClass::takesAQuery#2'
66+
67+ __ the callable format is ` class::method#parameterIndex ` , while the parameter-index defines the position of the query-string argument.__
68+
69+ see also [ Query Plan Analysis] ( https://github.com/staabm/phpstan-dba/blob/main/docs/query-plan-analysis.md )
You can’t perform that action at this time.
0 commit comments