Skip to content

Commit 11bec7e

Browse files
committed
1 parent 5c298f7 commit 11bec7e

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

wp-includes/sqlite/class-wp-sqlite-db.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function esc_like( $text ) {
112112
*
113113
* @param string $str The error to display.
114114
*
115-
* @return bool False if the showing of errors is disabled.
115+
* @return bool|void False if the showing of errors is disabled.
116116
*/
117117
public function print_error( $str = '' ) {
118118
global $EZSQL_ERROR;
@@ -194,6 +194,7 @@ public function flush() {
194194
* @see wpdb::db_connect()
195195
*
196196
* @param bool $allow_bail Not used.
197+
* @return void
197198
*/
198199
public function db_connect( $allow_bail = true ) {
199200
$this->init_charset();

wp-includes/sqlite/class-wp-sqlite-pdo-engine.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ private function prepare_query() {
717717
*
718718
* @param object $statement The PDO statement.
719719
*
720-
* @return boolean
720+
* @return boolean|void
721721
*/
722722
private function execute_query( $statement ) {
723723
$reason = 0;
@@ -1270,7 +1270,7 @@ private function process_results( $engine ) {
12701270
* @param string $function Indicate the function name where the error occurred.
12711271
* @param string $message The message.
12721272
*
1273-
* @return boolean
1273+
* @return boolean|void
12741274
*/
12751275
private function set_error( $line, $function, $message ) {
12761276
global $wpdb;
@@ -1503,6 +1503,8 @@ public function beginTransaction() {
15031503
* Method to call PDO::commit().
15041504
*
15051505
* @see PDO::commit()
1506+
*
1507+
* @return void
15061508
*/
15071509
public function commit() {
15081510
$this->pdo->commit();
@@ -1513,6 +1515,8 @@ public function commit() {
15131515
* Method to call PDO::rollBack().
15141516
*
15151517
* @see PDO::rollBack()
1518+
*
1519+
* @return void
15161520
*/
15171521
public function rollBack() {
15181522
$this->pdo->rollBack();

wp-includes/sqlite/class-wp-sqlite-pdo-user-defined-functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ private function derive_interval( $interval ) {
443443
list($years, $months) = explode( '-', $_parts[0] );
444444
return 'P' . $years . 'Y' . $months . 'M';
445445
}
446+
return '';
446447
}
447448

448449
/**

0 commit comments

Comments
 (0)