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

PHPStan: Fix level 3 errors

This commit is contained in:
Jakub Vrana
2025-03-26 16:57:58 +01:00
parent 7e5757f8b4
commit 309fdb0d86
11 changed files with 48 additions and 43 deletions

View File

@@ -344,12 +344,12 @@ function input($field, $value, $function, $autofocus = false) {
/** Process edit input field
* @param Field one field from fields()
* @return string or false to leave the original value
* @return mixed false to leave the original value
*/
function process_input($field) {
global $adminer, $driver;
if (stripos($field["default"], "GENERATED ALWAYS AS ") === 0) {
return null;
return;
}
$idf = bracket_escape($field["field"]);
$function = idx($_POST["function"], $idf);