Wrong version constraint for spatie/pdf-to-image

Created on 20 February 2023, over 1 year ago
Updated 11 March 2023, over 1 year ago

Problem/Motivation

composer.json of this module states that any version of spatie/pdf-to-image library is supported. But in this file src/Manager/MediaPdfThumbnailImagickManager.php, line 50, method setLayerMethod is used, that is not in version 1 of spatie/pdf-to-image. No idea how that happened, that 1.2.0 version of the library was installed in my case, but anyway it would be nice to restrict the version to correct one (the method was introduced in 1.4.0)

Steps to reproduce

Try to install spatie/pdf-to-image

composer require spatie/pdf-to-image
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^1.2 for spatie/pdf-to-image
./composer.json has been updated
Running composer update spatie/pdf-to-image
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking spatie/pdf-to-image (1.2.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Downloading spatie/pdf-to-image (1.2.2)
- Installing spatie/pdf-to-image (1.2.2): Extracting archive
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
52 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

php -v
PHP 8.1.11 (cli) (built: Sep 29 2022 19:44:28) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies

Proposed resolution

Restrict version of spatie/pdf-to-image to ^1.4 || ^2.0

Remaining tasks

Create patch or MR

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

5.4

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024