diff --git a/wp-includes/sqlite-ast/class-wp-sqlite-driver-exception.php b/wp-includes/sqlite-ast/class-wp-sqlite-driver-exception.php index a72dd71..91918bd 100644 --- a/wp-includes/sqlite-ast/class-wp-sqlite-driver-exception.php +++ b/wp-includes/sqlite-ast/class-wp-sqlite-driver-exception.php @@ -20,7 +20,7 @@ public function __construct( WP_SQLite_Driver $driver, string $message, $code = 0, - Throwable $previous = null + ?Throwable $previous = null ) { parent::__construct( $message, 0, $previous ); $this->code = $code; diff --git a/wp-includes/sqlite-ast/class-wp-sqlite-driver.php b/wp-includes/sqlite-ast/class-wp-sqlite-driver.php index 361f278..550e7f4 100644 --- a/wp-includes/sqlite-ast/class-wp-sqlite-driver.php +++ b/wp-includes/sqlite-ast/class-wp-sqlite-driver.php @@ -2783,7 +2783,7 @@ private function translate_datetime_literal( string $value ): string { private function recreate_table_from_information_schema( bool $table_is_temporary, string $table_name, - array $column_map = null + ?array $column_map = null ): void { if ( null === $column_map ) { $columns_table = $this->information_schema_builder->get_table_name( $table_is_temporary, 'columns' ); @@ -3538,7 +3538,7 @@ private function set_results_from_fetched_data( array $data ): void { * * @param int|null $override Override the affected rows. */ - private function set_result_from_affected_rows( int $override = null ): void { + private function set_result_from_affected_rows( ?int $override = null ): void { /* * SELECT CHANGES() is a workaround for the fact that $stmt->rowCount() * returns "0" (zero) with the SQLite driver at all times. @@ -3564,7 +3564,7 @@ private function set_result_from_affected_rows( int $override = null ): void { private function new_driver_exception( string $message, $code = 0, - Throwable $previous = null + ?Throwable $previous = null ): WP_SQLite_Driver_Exception { return new WP_SQLite_Driver_Exception( $this, $message, $code, $previous ); }