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;