mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Explicitly mark nullable params (thanks to @dg)
This commit is contained in:
@@ -173,7 +173,7 @@ function hidden_fields_get(): void {
|
||||
* @param Field $field
|
||||
* @param mixed $value string|array
|
||||
*/
|
||||
function enum_input(string $type, string $attrs, array $field, $value, string $empty = null): string {
|
||||
function enum_input(string $type, string $attrs, array $field, $value, ?string $empty = null): string {
|
||||
preg_match_all("~'((?:[^']|'')*)'~", $field["length"], $matches);
|
||||
$return = ($empty !== null ? "<label><input type='$type'$attrs value='$empty'" . ((is_array($value) ? in_array($empty, $value) : $value === $empty) ? " checked" : "") . "><i>" . lang('empty') . "</i></label>" : "");
|
||||
foreach ($matches[1] as $i => $val) {
|
||||
|
Reference in New Issue
Block a user