From 410113785dc3f661b3c17594f5442a99ff02cb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Wed, 11 Jun 2025 22:05:48 +0200 Subject: [PATCH] Make nullable $previous optional in class-wp-sqlite-information-schema-exception.php Adds `?` to `?Throwable previous = null` to fix this deprecation warning: [11-Jun-2025 18:07:04 UTC] PHP Deprecated: WP_SQLite_Information_Schema_Exception::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /internal/shared/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-exception.php on line 38 --- .../sqlite-ast/class-wp-sqlite-information-schema-exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-exception.php b/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-exception.php index efa96ac49..361a7854a 100644 --- a/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-exception.php +++ b/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-exception.php @@ -39,7 +39,7 @@ public function __construct( string $type, string $message, array $data = array(), - Throwable $previous = null + ?Throwable $previous = null ) { parent::__construct( $message, 0, $previous ); $this->type = $type;