Skip to content

Commit a669b85

Browse files
westonruterclaude
andcommitted
Fix bare return statements in prepare() to return null
Two early-exit paths used bare return; instead of return null; to match the documented @return string|null type. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 7327f0c commit a669b85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/class-wpdb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ public function prepare( $query, ...$args ) {
16661666
'6.2.0'
16671667
);
16681668

1669-
return;
1669+
return null;
16701670
}
16711671

16721672
$args_count = count( $args );
@@ -1684,7 +1684,7 @@ public function prepare( $query, ...$args ) {
16841684
'4.9.0'
16851685
);
16861686

1687-
return;
1687+
return null;
16881688
} else {
16891689
/*
16901690
* If we don't have the right number of placeholders,

0 commit comments

Comments
 (0)