1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

333 Commits

Author SHA1 Message Date
Jakub Vrana
c9a52cd28c Link routines from syntax highlighting 2025-07-07 15:06:41 +02:00
Jakub Vrana
cde6b9008c Move partitioning functions 2025-04-14 13:54:20 +02:00
Jakub Vrana
3f979793f7 Fix foreign key actions (regression from 5.1.1)
https://github.com/vrana/adminer/discussions/969#discussioncomment-12752117
2025-04-07 19:51:43 +02:00
Jakub Vrana
04ed73be26 Explicitly mark nullable params (thanks to @dg) 2025-04-01 19:14:44 +02:00
Jakub Vrana
016c1b2357 PHPStan: Fix types 2025-03-31 10:09:30 +02:00
Jakub Vrana
a93e4cb694 Return Db from connection()
It's not a real type declaration because compile.php passes stdClass here.
2025-03-31 10:09:30 +02:00
Jakub Vrana
291ae7f1ac Fix types of $connection2 2025-03-29 22:17:16 +01:00
Jakub Vrana
712d96b22c Use connection() instead of $connection 2025-03-29 22:10:20 +01:00
Jakub Vrana
168ea5ae6d Use driver() instead of $driver 2025-03-29 22:05:31 +01:00
Jakub Vrana
46f6a96c95 Doc-comments: Fix type errors 2025-03-28 15:41:36 +01:00
Jakub Vrana
a691bcbf15 Rename function with the same name as Driver::select 2025-03-28 12:47:09 +01:00
Jakub Vrana
e3a4a214e6 Doc-comments: Remove redundant info 2025-03-28 12:47:09 +01:00
Jakub Vrana
a9143ccbdc Doc-comments: Fix type errors 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
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
b23bf6c055 PHPStan: Fix more errors 2025-03-27 18:39:48 +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
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
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
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
cd207238b7 Move icons to CSS 2025-03-26 00:08:16 +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
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
b8eb0ad8f5 Notices: Declare properties in fetch_field() 2025-03-24 12:18:24 +01:00
Jakub Vrana
3dd1b41472 Notices: Store maria into a declared variable 2025-03-24 07:30:22 +01:00
Jakub Vrana
9b345fbafb CockroachDB: Do not use version number when linking docs 2025-03-19 06:49:48 +01:00
Jakub Vrana
8979baca28 Remove forgotten newline 2025-03-19 05:45:22 +01:00
Jakub Vrana
bc9de24d77 Add helper for <input type=hidden> 2025-03-18 17:15:10 +01:00
Jakub Vrana
9cfea02e19 Avoid excessive PHP and HTML mixing 2025-03-18 16:45:15 +01:00
Jakub Vrana
78c431ab20 Fix typos after 22a3efe 2025-03-17 14:28:04 +01:00
Jakub Vrana
22a3efe4ed Code style: avoid excesive mixing of PHP and HTML 2025-03-17 00:02:41 +01:00
Jakub Vrana
777d5dca0e Store information about vendor 2025-03-16 19:03:12 +01:00
Peter Knut
0762c761ac Rename functions for settings stored in a cookie 2025-03-16 17:24:28 +01:00
Jakub Vrana
d20cbf14e7 Remember export setting at SQL command 2025-03-16 15:13:10 +01:00
Jakub Vrana
42bf7b9ca0 Align numbers right (bug #912) 2025-03-15 15:13:41 +01:00
Jakub Vrana
b1550b052d MySQL: Simplify checking for MariaDB 2025-03-13 12:24:35 +01:00
Peter Knut
db7202fcf0 MySQL: Fix saving string default value of json field 2025-03-13 07:19:27 +01:00
Jakub Vrana
3b1189cd3c MySQL: Allow setting default values of json column 2025-03-12 14:25:19 +01:00
Jakub Vrana
f2ce6c0a71 Wrap long lines 2025-03-12 11:43:21 +01:00
Jakub Vrana
aeac0a3329 MySQL: Allow setting default values of text column 2025-03-10 21:15:01 +01:00
Jakub Vrana
f8b2640156 Fix gzip export (fixes #896) 2025-03-10 18:51:28 +01:00
Jakub Vrana
bb23546478 Use <datalist> for altering collations 2025-03-10 14:13:34 +01:00