Skip to content

Commit

Permalink
fix: add Model return type back
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Sep 26, 2024
1 parent 1de8121 commit c8b346a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/ModelQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit c8b346a

Please sign in to comment.