From c8b346a6ad5f520ac09c719205213c6b70fb71f8 Mon Sep 17 00:00:00 2001 From: Jason Adams Date: Thu, 26 Sep 2024 11:37:09 -0600 Subject: [PATCH] fix: add Model return type back --- src/Models/ModelQueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/ModelQueryBuilder.php b/src/Models/ModelQueryBuilder.php index a00b9a0..0468fe0 100644 --- a/src/Models/ModelQueryBuilder.php +++ b/src/Models/ModelQueryBuilder.php @@ -58,7 +58,7 @@ public function count( $column = null ) : int { * * @return M|null */ - public function get( $output = OBJECT ) { + public function get( $output = OBJECT ): ?Model { $row = DB::get_row( $this->getSQL(), OBJECT ); if ( ! $row ) {