This commit is contained in:
proelements
2025-12-29 10:01:13 +02:00
parent ce77bab1a1
commit 9bdad9d028
319 changed files with 1925 additions and 658 deletions

View File

@@ -35,7 +35,7 @@ class Note_Query_Builder extends Model_Query_Builder {
*
* @param \wpdb|null $connection
*/
public function __construct( \wpdb $connection = null ) {
public function __construct( ?\wpdb $connection = null ) {
parent::__construct( Note::class, $connection );
}
@@ -72,7 +72,7 @@ class Note_Query_Builder extends Model_Query_Builder {
*
* @return $this
*/
public function with_replies( callable $callback = null ) {
public function with_replies( ?callable $callback = null ) {
$key = 'replies';
$foreign_key = 'parent_id';
$local_key = 'id';