Skip to content

Commit 14fe48e

Browse files
authored
Make nullable $previous optional in class-wp-sqlite-information-schema-exception.php (#199)
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 cc @draganescu – are there any other deprecation warnings you've seen?
2 parents 3ca0329 + 4101137 commit 14fe48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-includes/sqlite-ast/class-wp-sqlite-information-schema-exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
string $type,
4040
string $message,
4141
array $data = array(),
42-
Throwable $previous = null
42+
?Throwable $previous = null
4343
) {
4444
parent::__construct( $message, 0, $previous );
4545
$this->type = $type;

0 commit comments

Comments
 (0)