Skip to content

run conversion even if file is null #185

run conversion even if file is null

run conversion even if file is null #185

Triggered via push October 18, 2024 23:41
Status Failure
Total duration 32s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
phpstan: src/Contracts/InteractWithMedia.php#L27
Generic type Illuminate\Database\Eloquent\Relations\MorphMany<Elegantly\Media\Models\Media> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphMany: TRelatedModel, TDeclaringModel
phpstan: src/Models/Media.php#L107
Method Elegantly\Media\Models\Media::model() should return Illuminate\Database\Eloquent\Relations\MorphTo<Illuminate\Database\Eloquent\Model, Elegantly\Media\Models\Media> but returns Illuminate\Database\Eloquent\Relations\MorphTo<Illuminate\Database\Eloquent\Model, $this(Elegantly\Media\Models\Media)>.
phpstan: src/Models/Media.php#L113
Generic type Illuminate\Database\Eloquent\Relations\HasMany<Elegantly\Media\Models\MediaConversion> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\HasMany: TRelatedModel, TDeclaringModel
phpstan: src/Models/Media.php#L115
Method Elegantly\Media\Models\Media::conversions() should return Illuminate\Database\Eloquent\Relations\HasMany<Elegantly\Media\Models\MediaConversion> but returns Illuminate\Database\Eloquent\Relations\HasMany<Elegantly\Media\Models\MediaConversion, $this(Elegantly\Media\Models\Media)>.
phpstan: src/Models/MediaConversion.php#L93
Method Elegantly\Media\Models\MediaConversion::media() should return Illuminate\Database\Eloquent\Relations\BelongsTo<Elegantly\Media\Models\Media, Elegantly\Media\Models\MediaConversion> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<Elegantly\Media\Models\Media, $this(Elegantly\Media\Models\MediaConversion)>.
phpstan
Process completed with exit code 1.