Replace argument mode constants with an enumeration

Created on 16 December 2023, over 1 year ago
Updated 31 December 2023, over 1 year ago

Deprecate the constants ImagemagickExecArguments::PRE_SOURCE, ::POST_SOURCE and ::INTERNAL, and their usage across the module.

Introduce an enum ArgumentMode with corresponding ::PreSource, ::PostSource and ::Internal cases.

  • ImagemagickExecArguments:: toString()
  • ImagemagickExecArguments:: add()
  • ImagemagickExecArguments:: find()
  • ImagemagickImageToolkitOperationBase:: addArgument()

now prefer the $mode argument to be ArgumentMode over a constant; in Imagemagick 4.0.0. it will be mandatory.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇹Italy mondrake 🇮🇹

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024