Skip to content

Commit

Permalink
stan
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Oct 19, 2024
1 parent c4341fb commit 3a17c17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Contracts/InteractWithMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Elegantly\Media\Models\MediaConversion;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Foundation\Bus\PendingDispatch;
use Illuminate\Http\File;
Expand All @@ -22,7 +23,7 @@
interface InteractWithMedia
{
/**
* @return MorphMany<TMedia>
* @return MorphMany<TMedia, Model>
*/
public function media(): MorphMany;

Expand Down
4 changes: 2 additions & 2 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ protected function url(): Attribute
}

/**
* @return MorphTo<Model, Media>
* @return MorphTo<Model, $this>
*/
public function model(): MorphTo
{
return $this->morphTo();
}

/**
* @return HasMany<MediaConversion>
* @return HasMany<MediaConversion, $this>
*/
public function conversions(): HasMany
{
Expand Down
2 changes: 1 addition & 1 deletion src/Models/MediaConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function booted()
}

/**
* @return BelongsTo<Media, MediaConversion>
* @return BelongsTo<Media, $this>
*/
public function media(): BelongsTo
{
Expand Down

0 comments on commit 3a17c17

Please sign in to comment.