Commit 91d821e
committed
Use instanceof check for native lexer fast path
When the native extension is loaded, WP_MySQL_Lexer extends
WP_MySQL_Native_Lexer, so an instanceof check is more direct than
method_exists() — and it gives the IDE/static analyzer something to
work with.1 parent 7b2099a commit 91d821e
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests/tools
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
| 1161 | + | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments