Skip to content

Allow withResponsiveImages to be conditionally set (#3742) #281

Allow withResponsiveImages to be conditionally set (#3742)

Allow withResponsiveImages to be conditionally set (#3742) #281

Triggered via push December 9, 2024 16:18
Status Failure
Total duration 37s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
phpstan: src/Conversions/ConversionCollection.php#L69
Access to an undefined property Illuminate\Database\Eloquent\Model::$mediaConversions.
phpstan: src/Conversions/ConversionCollection.php#L72
Method Spatie\MediaLibrary\HasMedia::registerAllMediaConversions() invoked with 1 parameter, 0 required.
phpstan: src/Conversions/ConversionCollection.php#L74
Access to an undefined property Illuminate\Database\Eloquent\Model|Spatie\MediaLibrary\HasMedia::$mediaConversions.
phpstan: src/Conversions/ImageGenerators/Pdf.php#L22
Call to an undefined method Spatie\PdfToImage\Pdf::setPage().
phpstan: src/MediaCollections/Models/Media.php#L87
Return type (Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection) of method Spatie\MediaLibrary\MediaCollections\Models\Media::newCollection() should be compatible with return type (Illuminate\Database\Eloquent\Collection<(int|string), static(Illuminate\Database\Eloquent\Model)>) of method Illuminate\Database\Eloquent\Model::newCollection()
phpstan: src/MediaCollections/Models/Media.php#L89
Parameter #1 $items of class Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection constructor expects Illuminate\Contracts\Support\Arrayable<(int|string), TModel of Spatie\MediaLibrary\MediaCollections\Models\Media>|iterable<(int|string), TModel of Spatie\MediaLibrary\MediaCollections\Models\Media>|null, array<Illuminate\Database\Eloquent\Model> given.
phpstan
Process completed with exit code 1.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636