1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 11:34:10 +02:00

PHPStan: Fix level 1 errors

This commit is contained in:
Jakub Vrana
2025-03-26 13:49:11 +01:00
parent 3de9b23156
commit d39cc24c61
15 changed files with 28 additions and 27 deletions

View File

@@ -1,10 +1,11 @@
parameters:
level: 0
level: 1
ignoreErrors:
- identifier: include.fileNotFound # relative includes
- identifier: includeOnce.fileNotFound # ./adminer-plugins.php
- "~^Function (set_magic_quotes_runtime|mysql_)~" # PHP < 7 functions
- "~^Instantiated class Adminer\\w~" # no support for classes defined inside function
- "~^Variable \\$(adminer|connection|driver|drivers|error|HTTPS|LANG|langs|permanent|has_token|token|translations|VERSION) might not be defined~" # declared in bootstrap.inc.php
paths:
- .
phpVersion: