Skip to content

Commit

Permalink
Return type for phpstan (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Feb 20, 2025
1 parent ea889ef commit fb62667
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/ProductImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Rapidez\Core\Models;

use Illuminate\Contracts\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ProductImage extends Model
{
Expand All @@ -26,7 +27,7 @@ protected static function booted(): void
);
}

public function productImageValue()
public function productImageValue(): BelongsTo
{
return $this->belongsTo(config('rapidez.models.product_image_value'), 'value_id', 'value_id');
}
Expand Down

0 comments on commit fb62667

Please sign in to comment.