From 8a8eab813de3497cc7470f62d1fb5d4d3f367759 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Tue, 24 Sep 2024 01:07:57 +0100 Subject: [PATCH] Fix charset in procedure's parameter type Signed-off-by: Kamil Tekiela --- libraries/classes/Database/Routines.php | 2 +- psalm-baseline.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/classes/Database/Routines.php b/libraries/classes/Database/Routines.php index 1b515f70c5..586ae9b9ce 100644 --- a/libraries/classes/Database/Routines.php +++ b/libraries/classes/Database/Routines.php @@ -699,7 +699,7 @@ class Routines $charsets[] = [ 'name' => $charset->getName(), 'description' => $charset->getDescription(), - 'is_selected' => $charset->getName() === $routine['item_param_opts_text'][$i], + 'is_selected' => $charset->getName() === mb_strtolower($routine['item_param_opts_text'][$i]), ]; } diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 2f7ae7e418..95b605ffdd 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -5263,7 +5263,7 @@ $retval['item_param_dir'][$key] - + $db $db $db @@ -5292,6 +5292,7 @@ $routine['item_param_name'][$i] $routine['item_param_name'][$i] $routine['item_param_name'][$i] + $routine['item_param_opts_text'][$i] $routine['item_param_type'][$i] $routine['item_param_type'][$i] $routine['item_param_type'][$i]