Jakub Vrana
a9143ccbdc
Doc-comments: Fix type errors
2025-03-28 12:47:09 +01:00
Jakub Vrana
c169c55d70
Call Plugins from Adminer class
2025-03-28 12:47:09 +01:00
Jakub Vrana
54f3437a6a
Plugins: Simplify calling
...
The class Plugins don't extend Adminer anymore. Adminer is now treated like any other plugin.
Hooks are now registered in the constructor and they are called dynamically.
Apart from being much more pleasant to work with, it shaves 7 kB from the compiled file.
2025-03-28 12:47:09 +01:00
Jakub Vrana
b948f77af4
Doc-comments: Fix type errors
2025-03-28 12:47:06 +01:00
Jakub Vrana
54f8d731b3
Doc-comments: Sync method signatures
2025-03-28 12:45:02 +01:00
Jakub Vrana
ab4208dcb8
Doc-comments: Declare type properties
2025-03-28 12:45:02 +01:00
Jakub Vrana
5e88dae4e2
Doc-comments: Format
2025-03-28 12:45:02 +01:00
Jakub Vrana
45c045382a
Doc-comments: Move return types to declaration
2025-03-28 12:45:02 +01:00
Jakub Vrana
641ee4ff26
Doc-comments: Move param types to declaration
2025-03-28 12:45:02 +01:00
Jakub Vrana
911f3b71b7
Doc-comments: Add param names
2025-03-28 12:45:02 +01:00
Jakub Vrana
104132de36
Fix errors discovered by tests
2025-03-27 21:05:31 +01:00
Jakub Vrana
b23bf6c055
PHPStan: Fix more errors
2025-03-27 18:39:48 +01:00
Jakub Vrana
e2deed9a02
Use common parent for Db
2025-03-27 18:39:47 +01:00
Jakub Vrana
d3b53d9d9c
PHPStan: Fix level 6 errors
2025-03-26 21:54:00 +01:00
Jakub Vrana
c96894ecd4
PHPStan: Fix level 5 errors
2025-03-26 19:29:50 +01:00
Jakub Vrana
c78299a3f6
PHPStan: Fix level 4 errors
2025-03-26 18:32:45 +01:00
Jakub Vrana
d77ed18842
Separate queries(null)
2025-03-26 17:04:30 +01:00
Jakub Vrana
309fdb0d86
PHPStan: Fix level 3 errors
2025-03-26 16:57:58 +01:00
Jakub Vrana
7e5757f8b4
PHPStan: Fix level 2 errors
2025-03-26 16:22:15 +01:00
Jakub Vrana
d39cc24c61
PHPStan: Fix level 1 errors
2025-03-26 13:49:11 +01:00
Jakub Vrana
3de9b23156
PHPStan: Use @return void
...
PHPStan then warns abouts using the return value
2025-03-26 13:14:12 +01:00
Jakub Vrana
63c258a7f9
PHPStan: Fix level 0 errors
2025-03-26 13:14:10 +01:00
Jakub Vrana
a60e00bf72
Use Adminer\Plugins
2025-03-26 11:10:37 +01:00
Jakub Vrana
6e7158537f
Add comment
2025-03-26 10:25:13 +01:00
Jakub Vrana
c5f87110ff
Notices: Use idx()
2025-03-26 10:21:36 +01:00
Jakub Vrana
1b8a428d2f
Notices: Avoid accessing offset on null
...
Thanks to @peterpp at 62017e3 .
2025-03-26 07:20:10 +01:00
Jakub Vrana
41aad5bc37
Doc-comment: Use type aliases for arrays
...
Type aliases could be defined either globally (https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases ) or just for a class.
I prefer having them at the place where they are created.
2025-03-26 02:43:08 +01:00
Jakub Vrana
cccc784da4
Always return array from table_status()
2025-03-26 01:34:48 +01:00
Jakub Vrana
cd207238b7
Move icons to CSS
2025-03-26 00:08:16 +01:00
Jakub Vrana
db0e44221b
Doc-comments: Use special PHPStan types
2025-03-25 15:18:47 +01:00
Jakub Vrana
01e2fe4234
Doc-comments: Use array shapes in @return
...
This uses https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
I'm not going to do this in @param, it would be better to use https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases
2025-03-25 15:08:13 +01:00
Jakub Vrana
4d2b5144b1
Doc-comments: Improve array @var
2025-03-25 14:41:26 +01:00
Jakub Vrana
2ee325183b
Doc-comment: Improve array @param
...
This uses syntax from https://phpstan.org/writing-php-code/phpdoc-types#general-arrays .
int[] means an array of ints with arbitrary keys (usually strings)
list<string> means an array of strings with sequential integer keys starting at 0
list<string>[] means an arbitrary array of string lists
list<string[]> means list of arbitrary string arrays
string[][] means two dimensional array with arbitrary keys in both dimensions
array was left in the comments for https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
2025-03-25 14:31:27 +01:00
Jakub Vrana
26aa48122f
Doc-comments: Improve array @return
2025-03-25 13:27:54 +01:00
Jakub Vrana
2c72b879e9
Simplify saving flavor
2025-03-25 06:15:09 +01:00
Jakub Vrana
b13c76149f
Add comment
2025-03-25 06:08:54 +01:00
Jakub Vrana
5dea23a07a
Develop
2025-03-24 17:36:47 +01:00
Jakub Vrana
99a0949d2a
Release 5.1.0
2025-03-24 17:35:22 +01:00
Jakub Vrana
1cf5a91d98
Export: Use output buffering
2025-03-24 17:28:53 +01:00
Jakub Vrana
88821a5780
Move beforeunload to plugin
2025-03-24 16:55:40 +01:00
Jakub Vrana
078a8b3d6b
Improve handling of translations with '
2025-03-24 15:57:46 +01:00
Inoyatulloh
4df205d4ec
Added Uzbek language
2025-03-24 15:44:30 +01:00
Jakub Vrana
50cdbbe415
Non-MySQL: Better field types in SQL command
2025-03-24 14:43:15 +01:00
Jakub Vrana
b86a9cb5fb
Turn on output buffering only after sending headers
...
Otherwise output sent before Location (usually errors) is lost.
2025-03-24 14:04:17 +01:00
Jakub Vrana
d22b1091f1
Notices: fetch_field in PDO
2025-03-24 13:53:10 +01:00
Jakub Vrana
b8eb0ad8f5
Notices: Declare properties in fetch_field()
2025-03-24 12:18:24 +01:00
Jakub Vrana
c47590bb0d
Fix JS error on AI column input
2025-03-24 12:18:24 +01:00
Jakub Vrana
9fd9a1fc8d
Mute the same error in PHP 5
2025-03-24 07:30:22 +01:00
Jakub Vrana
60555c5736
Editor: Fix pre-selecting empty enum
2025-03-24 07:30:22 +01:00
Jakub Vrana
8cec1bd611
Notices: Declare Adminer::$error
2025-03-24 07:30:22 +01:00