Skip to content

Commit dd88684

Browse files
authored
Fix/legacy driver removal followup (#362)
Follow up items for consideration from reviewing #358
1 parent 1437789 commit dd88684

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"squizlabs/php_codesniffer": "^3.7",
1919
"wp-coding-standards/wpcs": "^3.1",
2020
"phpcompatibility/phpcompatibility-wp": "*",
21-
"php-parallel-lint/php-parallel-lint": "^1.3",
22-
"yoast/phpunit-polyfills": "2.0.0",
23-
"phpunit/phpunit": "8.5.52"
21+
"php-parallel-lint/php-parallel-lint": "^1.3"
2422
},
2523
"config": {
2624
"allow-plugins": {

packages/plugin-sqlite-database-integration/wp-includes/sqlite/install-functions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,12 @@ function sqlite_make_db_sqlite() {
5252
}
5353
$translator->commit();
5454
} catch ( PDOException $err ) {
55-
$err_data = $err->errorInfo; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
56-
$err_code = $err_data[1];
5755
$translator->rollback();
5856
$message = sprintf(
5957
'Error occurred while creating tables or indexes...<br />Query was: %s<br />',
6058
var_export( $query, true )
6159
);
62-
$message .= sprintf( 'Error message is: %s', $err_data[2] );
60+
$message .= sprintf( 'Error message is: %s', $err->getMessage() );
6361
wp_die( $message, 'Database Error!' );
6462
}
6563

0 commit comments

Comments
 (0)