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