Skip to content

Commit

Permalink
Update return types in DeviceUser model relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Feb 26, 2024
1 parent d7dca2c commit cb617ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Models/DeviceUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
namespace Modules\User\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
use Modules\Xot\Contracts\ProfileContract;
use Modules\Xot\Contracts\UserContract;
use Modules\Xot\Datas\XotData;

/**
Expand Down Expand Up @@ -87,7 +87,7 @@ public function device(): BelongsTo
}

/**
* @return BelongsTo<UserContract, DeviceUser>
* @return BelongsTo<User, DeviceUser>
*/
public function user(): BelongsTo
{
Expand All @@ -97,7 +97,7 @@ public function user(): BelongsTo
}

/**
* @return BelongsTo<ProfileContract, DeviceUser>
* @return BelongsTo<Model&ProfileContract, DeviceUser>
*/
public function profile(): BelongsTo
{
Expand Down

0 comments on commit cb617ab

Please sign in to comment.