Encode using media type instead of extension #244
Annotations
6 errors
psalm:
src/Api/Encoder.php#L91
src/Api/Encoder.php:91:43: PossiblyNullArgument: Argument 1 of Intervention\Image\Interfaces\DriverInterface::supports cannot be null, possibly null value provided (see https://psalm.dev/078)
|
psalm
Process completed with exit code 2.
|
phpstan:
src/Api/Encoder.php#L91
Cannot access property $value on Intervention\Image\MediaType|null.
|
phpstan:
src/Api/Encoder.php#L91
Method League\Glide\Api\Encoder::getMediaType() should return Intervention\Image\MediaType but returns Intervention\Image\MediaType|null.
|
phpstan:
src/Api/Encoder.php#L91
Parameter #1 $identifier of method Intervention\Image\Interfaces\DriverInterface::supports() expects Intervention\Image\FileExtension|Intervention\Image\Format|Intervention\Image\MediaType|string, Intervention\Image\MediaType|null given.
|
phpstan
Process completed with exit code 1.
|
Loading