From dafd0e587d63af2ef89ca593fcb24e455d18ad90 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sat, 22 Aug 2026 00:48:52 +0100 Subject: [PATCH] Narrow Current::$whereClause to array|null Signed-off-by: Kamil Tekiela --- phpstan-baseline.neon | 4 ++-- src/Current.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0d3143becf..03ec0dfdc2 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -2581,7 +2581,7 @@ parameters: path: src/Controllers/Table/ChangeController.php - - message: '#^Static property PhpMyAdmin\\Current\:\:\$whereClause \(array\\|string\|null\) does not accept list\\.$#' + message: '#^Static property PhpMyAdmin\\Current\:\:\$whereClause \(array\\|null\) does not accept list\\.$#' identifier: assign.propertyType count: 1 path: src/Controllers/Table/ChangeRowsController.php @@ -2731,7 +2731,7 @@ parameters: path: src/Controllers/Table/ExportController.php - - message: '#^Static property PhpMyAdmin\\Current\:\:\$whereClause \(array\\|string\|null\) does not accept list\\.$#' + message: '#^Static property PhpMyAdmin\\Current\:\:\$whereClause \(array\\|null\) does not accept list\\.$#' identifier: assign.propertyType count: 1 path: src/Controllers/Table/ExportRowsController.php diff --git a/src/Current.php b/src/Current.php index 78690b2df8..fc81d9188b 100644 --- a/src/Current.php +++ b/src/Current.php @@ -13,8 +13,8 @@ final class Current public static string $sqlQuery = ''; public static Message|null $message = null; public static string $lang = 'en'; - /** @var array|string|null */ - public static array|string|null $whereClause = null; + /** @var array|null */ + public static array|null $whereClause = null; public static string|null $displayQuery = null; public static string|null $charset = null; public static string|null $completeQuery = null;