Translated using Weblate (Estonian)
[phpmyadmin.git] / psalm.xml
blobcf26119f585572a6b5ca04dd147855c6214d3cf1
1 <?xml version="1.0"?>
2 <psalm
3     autoloader="test/bootstrap-static.php"
4     errorLevel="1"
5     reportMixedIssues="true"
6     sealAllMethods="true"
7     resolveFromConfigFile="true"
8     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9     xmlns="https://getpsalm.org/schema/config"
10     xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
11     errorBaseline="psalm-baseline.xml"
13     <projectFiles>
14         <directory name="libraries"/>
15         <directory name="setup"/>
16         <directory name="test/classes"/>
17         <directory name="test/selenium"/>
18         <file name="js/messages.php"/>
19         <file name="index.php"/>
20         <file name="show_config_errors.php"/>
21         <file name="url.php"/>
22         <ignoreFiles>
23             <directory name="vendor"/>
24             <directory name="libraries/cache"/>
25         </ignoreFiles>
26     </projectFiles>
28     <stubs>
29         <file name="test/stubs/Query.stub"/>
30         <file name="test/stubs/uploadprogress.stub"/>
31     </stubs>
33     <plugins>
34         <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
35     </plugins>
37     <globals>
38         <var name="GLOBALS" type="array{
39             asfile: bool,
40             buffer_needed: bool,
41             cached_affected_rows: int|numeric-string,
42             cfg: array{
43                 AllowArbitraryServer: bool,
44                 AllowThirdPartyFraming: bool|'sameorigin',
45                 ArbitraryServerRegexp: string,
46                 AvailableCharsets: string[],
47                 BrowseMarkerEnable: bool,
48                 BrowsePointerEnable: bool,
49                 BrowseMIME: bool,
50                 BZipDump: bool,
51                 CaptchaApi: string,
52                 CaptchaLoginPublicKey: string,
53                 CaptchaRequestParam: string,
54                 CaptchaResponseParam: string,
55                 CharEditing: 'input'|'textarea',
56                 CharTextareaCols: positive-int,
57                 CharTextareaRows: positive-int,
58                 CodemirrorEnable: bool,
59                 CompressOnFly: bool,
60                 Confirm: bool,
61                 ConsoleEnterExecutes: bool,
62                 DBG: array{sql: bool, sqllog: bool, demo: bool, simple2fa: bool},
63                 DefaultForeignKeyChecks: 'default'|'enable'|'disable',
64                 DefaultQueryDatabase: string,
65                 DefaultQueryTable: string,
66                 DefaultTabDatabase: 'structure'|'sql'|'search'|'operations',
67                 DefaultTabServer: 'welcome'|'databases'|'status'|'variables'|'privileges',
68                 DefaultTabTable: 'structure'|'sql'|'search'|'insert'|'browse',
69                 DefaultTransformations: array{
70                     Bool2Text: array{string, string},
71                     DateFormat: array{0|positive-int, string, 'local'|'utc'},
72                     External: array{int, string, int, int},
73                     Hex: array{0|positive-int},
74                     Inline: array{0: 0|positive-int, 1: 0|positive-int, wrapper_link: string|null, wrapper_params: array&lt;array-key, string&gt;},
75                     PreApPend: array{string, string},
76                     Substring: array{0|positive-int, 'all'|int, string},
77                     TextImageLink: array{string|null, 0|positive-int, 0|positive-int},
78                     TextLink: array{string|null, string|null, bool|null}
79                 },
80                 DisableMultiTableMaintenance: bool,
81                 DisplayServersList: bool,
82                 enable_drag_drop_import: bool,
83                 ExecTimeLimit: 0|positive-int,
84                 FirstLevelNavigationItems: positive-int,
85                 ForeignKeyDropdownOrder: array{0: 'content-id'|'id-content', 1?: 'content-id'|'id-content'},
86                 ForeignKeyMaxLimit: positive-int,
87                 GridEditing: 'double-click'|'click'|'disabled',
88                 GZipDump: bool,
89                 HideStructureActions: bool,
90                 IgnoreMultiSubmitErrors: bool,
91                 Import: array,
92                 InitialSlidersState: 'open'|'closed'|'disabled',
93                 InsertRows: positive-int,
94                 LimitChars: positive-int,
95                 LinkLengthLimit: positive-int,
96                 LintEnable: bool,
97                 LoginCookieDeleteAll: bool,
98                 LoginCookieRecall: bool,
99                 LoginCookieStore: 0|positive-int,
100                 LoginCookieValidity: positive-int,
101                 LongtextDoubleTextarea: bool,
102                 MaxDbList: positive-int,
103                 MaxCharactersInDisplayedSQL: positive-int,
104                 MaxExactCount: positive-int,
105                 MaxExactCountViews: 0|positive-int,
106                 MaxNavigationItems: positive-int,
107                 MaxTableList: positive-int,
108                 maxRowPlotLimit: positive-int,
109                 MaxRows: positive-int,
110                 MaxSizeForInputField: positive-int,
111                 MinSizeForInputField: 0|positive-int,
112                 MysqlMinVersion: array{internal: int, human: string},
113                 MysqlSslWarningSafeHosts: string[],
114                 NaturalOrder: bool,
115                 NavigationLinkWithMainPanel: bool,
116                 NavigationTreeDbSeparator: string,
117                 NavigationTreeDefaultTabTable: 'structure'|'sql'|'search'|'insert'|'browse',
118                 NavigationTreeDefaultTabTable2: 'structure'|'sql'|'search'|'insert'|'browse'|'',
119                 NavigationTreeDisplayDbFilterMinimum: positive-int,
120                 NavigationTreeDisplayItemFilterMinimum: positive-int,
121                 NavigationTreeEnableExpansion: bool,
122                 NavigationTreeEnableGrouping: bool,
123                 NavigationTreeShowEvents: bool,
124                 NavigationTreeShowFunctions: bool,
125                 NavigationTreeShowProcedures: bool,
126                 NavigationTreeShowTables: bool,
127                 NavigationTreeShowViews: bool,
128                 NavigationTreeTableLevel: positive-int,
129                 NavigationTreeTableSeparator: string|string[]|false,
130                 NumFavoriteTables: 0|positive-int,
131                 NumRecentTables: 0|positive-int,
132                 OBGzip: 'auto'|bool,
133                 PDFDefaultPageSize: string,
134                 PDFPageSizes: string[],
135                 PersistentConnections: bool,
136                 PropertiesNumColumns: positive-int,
137                 ProtectBinary: 'blob'|'noblob'|'all'|false,
138                 QueryHistoryDB: bool,
139                 QueryHistoryMax: positive-int,
140                 RelationalDisplay: 'K'|'D',
141                 RememberSorting: bool,
142                 RepeatCells: 0|positive-int,
143                 ReservedWordDisableWarning: bool,
144                 RetainQueryBox: bool,
145                 RowActionLinks: 'left'|'right'|'both'|'none',
146                 RowActionLinksWithoutUnique: bool,
147                 SaveCellsAtOnce: bool,
148                 SendErrorReports: 'ask'|'always'|'never',
149                 Server: array{
150                     auth_type: 'config'|'http'|'signon'|'cookie',
151                     bookmarktable: string|false,
152                     central_columns: string|false,
153                     column_info: string|false,
154                     designer_settings: string|false,
155                     DisableIS: bool,
156                     export_templates: string|false,
157                     favorite: string|false,
158                     history: string|false,
159                     host: string,
160                     MaxTableUiprefs: positive-int,
161                     navigationhiding: string|false,
162                     only_db: string|string[],
163                     password: string,
164                     pdf_pages: string|false,
165                     pmadb: string|false,
166                     port: string,
167                     recent: string|false,
168                     relation: string|false,
169                     savedsearches: string|false,
170                     SessionTimeZone: string,
171                     SignonCookieParams: array{lifetime: 0|positive-int, path: string, domain: string, secure: bool, httponly: bool, samesite?: 'Lax'|'Strict'},
172                     SignonScript: string,
173                     SignonSession: string,
174                     SignonURL: string,
175                     table_coords: string|false,
176                     table_info: string|false,
177                     table_uiprefs: string|false,
178                     tracking: string|false,
179                     tracking_add_drop_database: bool,
180                     tracking_add_drop_table: bool,
181                     tracking_add_drop_view: bool,
182                     tracking_default_statements: string,
183                     tracking_version_auto_create: bool,
184                     user: string,
185                     userconfig: string|false,
186                     usergroups: string|false,
187                     users: string|false,
188                     verbose: string
189                 },
190                 ServerDefault: 0|positive-int,
191                 Servers: array[],
192                 ShowAll: bool,
193                 ShowBrowseComments: bool,
194                 ShowColumnComments: bool,
195                 ShowCreateDb: bool,
196                 ShowDatabasesNavigationAsTree: bool,
197                 ShowDbStructureCharset: bool,
198                 ShowDbStructureComment: bool,
199                 ShowDbStructureCreation: bool,
200                 ShowDbStructureLastCheck: bool,
201                 ShowDbStructureLastUpdate: bool,
202                 ShowFieldTypesInDataEditView: bool,
203                 ShowFunctionFields: bool,
204                 ShowHint: bool,
205                 ShowPropertyComments: bool,
206                 ShowSQL: bool,
207                 ShowStats: bool,
208                 TextareaAutoSelect: bool,
209                 TextareaCols: positive-int,
210                 TextareaRows: positive-int,
211                 ThemeDefault: string,
212                 ThemePerServer: bool,
213                 TitleDatabase: string,
214                 TitleDefault: string,
215                 TitleServer: string,
216                 TitleTable: string,
217                 UserprefsDeveloperTab: bool,
218                 UserprefsDisallow: string[],
219                 VersionCheck: bool,
220                 ZeroConf: bool,
221                 ZipDump: bool
222             },
223             charset: string,
224             charset_connection: string,
225             codegen_format: 0|1,
226             col_priv: bool,
227             collation_connection: string,
228             complete_query: string,
229             compression: 'none'|'zip'|'gzip',
230             conn_error: string,
231             config: PhpMyAdmin\Config,
232             ConfigFile: PhpMyAdmin\Config\ConfigFile,
233             containerBuilder: Symfony\Component\DependencyInjection\ContainerBuilder,
234             crlf: string,
235             csv_columns: bool,
236             csv_enclosed: string,
237             csv_escaped: string,
238             csv_separator: string,
239             csv_terminated: string,
240             db: string,
241             db_priv: bool,
242             dbi: PhpMyAdmin\DatabaseInterface,
243             dbs_to_test: string[]|false,
244             dblist: PhpMyAdmin\Database\DatabaseList,
245             display_query: string,
246             errno: int,
247             error: bool,
248             error_message: string,
249             errorHandler: PhpMyAdmin\ErrorHandler,
250             excel_edition: 'win'|'mac_excel2003'|'mac_excel2008',
251             file_handle: resource|null,
252             finished: bool,
253             from_cookie: bool,
254             goto: string,
255             hostname: string,
256             import_file: string,
257             import_file_name: string,
258             import_text: string,
259             isMinimumCommon?: true,
260             is_create_db_priv: bool,
261             is_reload_priv: bool,
262             knjenc: string,
263             lang: string,
264             latex_data_caption: string,
265             latex_data_continued_caption: string,
266             latex_data_label: string,
267             latex_null: string,
268             latex_structure_caption: string,
269             latex_structure_continued_caption: string,
270             latex_structure_label: string,
271             maxsize: string,
272             memory_limit: int,
273             message: PhpMyAdmin\Message,
274             ods_buffer: string,
275             odt_buffer: string,
276             offset: int,
277             old_tz: string,
278             onfly_compression: bool,
279             output_charset_conversion: bool,
280             output_kanji_conversion: bool,
281             plugin_param: string|array{export_type: string, single_table: bool},
282             plugin_scripts: string[],
283             pma_auth_server: string,
284             PMA_PHP_SELF: string,
285             proc_priv: bool,
286             querytime: float|int,
287             read_limit: int,
288             save_on_server: bool,
289             server: int,
290             SESSION_KEY: string,
291             showtable: array&lt;string, string|null&gt;,
292             sql_compatibility: 'NONE'|'ANSI'|'DB2'|'MAXDB'|'MYSQL323'|'MYSQL40'|'MSSQL'|'ORACLE'|'TRADITIONAL',
293             sql_constraints: string,
294             sql_constraints_query: string,
295             sql_drop_foreign_keys: string,
296             sql_if_not_exists: bool,
297             sql_ignore: bool,
298             sql_insert_syntax: 'complete'|'extended'|'both'|'none',
299             sql_max_query_size: 0|positive-int,
300             sql_query: string,
301             sql_structure_or_data: 'structure'|'data'|'structure_and_data',
302             sql_type: 'INSERT'|'UPDATE'|'REPLACE',
303             table: string,
304             table_priv: bool,
305             tbl_storage_engine: string,
306             text_dir: string,
307             token_mismatch: bool,
308             token_provided: bool,
309             unparsed_sql?: string,
310             urlParams: array,
311             username: string,
312             xml_export_triggers: bool,
313             xml_export_views: bool
314         }"/>
315     </globals>
316 </psalm>