Skip to content

Commit

Permalink
Fixes return type
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Sep 22, 2023
1 parent 5d3b893 commit 4a13a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/Barry/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ public static function findBy(string $column, mixed $value): Collection
* @param mixed $id
* @param array $select
*
* @return Collection|static|null
* @return Collection|Model|null
*/
public static function findAndDelete(
int | string | array $id,
array $select = ['*']
): Model {
): Collection|Model|null {
$model = static::find($id, $select);

if (is_null($model)) {
Expand Down

0 comments on commit 4a13a08

Please sign in to comment.