Skip to content

Commit

Permalink
Hopefully cleanup preprocessor conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Feb 8, 2024
1 parent 96780b2 commit 8b89847
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 4,823 deletions.
13 changes: 3 additions & 10 deletions Imagick.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class Imagick
{
#if MagickLibVersion > 0x628
public function optimizeImageLayers(): bool {}

// METRIC_*
Expand Down Expand Up @@ -114,13 +113,13 @@ public function getIteratorIndex(): int {}
/** @deprecated */
public function transformImage(string $crop, string $geometry): Imagick {}
#endif
#endif

#if MagickLibVersion > 0x630
#if MagickLibVersion < 0x700
/** @deprecated */
public function setImageOpacity(float $opacity): bool {}
#endif
#endif

#if MagickLibVersion >= 0x700
public function setImageAlpha(float $alpha): bool {}
Expand All @@ -134,7 +133,6 @@ public function orderedPosterizeImage(
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#endif

#if MagickLibVersion >= 0x700
public function polaroidWithTextAndMethod(
Expand All @@ -145,7 +143,6 @@ public function polaroidWithTextAndMethod(
): bool {}
#endif

#if MagickLibVersion > 0x631

public function polaroidImage(ImagickDraw $settings, float $angle): bool {}

Expand Down Expand Up @@ -175,7 +172,7 @@ public function linearStretchImage(float $black_point, float $white_point): bool
public function getImageLength(): int {}

public function extentImage(int $width, int $height, int $x, int $y): bool {}
#endif

#if MagickLibVersion > 0x633
public function getImageOrientation(): int {}

Expand All @@ -198,9 +195,6 @@ public function paintFloodfillImage(
#endif
#endif

#if MagickLibVersion > 0x635


public function clutImage(Imagick $lookup_table, int $channel = Imagick::CHANNEL_DEFAULT): bool {}

#if MagickLibVersion >= 0x700
Expand Down Expand Up @@ -244,7 +238,7 @@ public function animateImages(string $x_server): bool {}
public function recolorImage(array $matrix): bool {}
#endif
#endif
#endif


#if MagickLibVersion > 0x636
public function setFont(string $font): bool {}
Expand Down Expand Up @@ -299,7 +293,6 @@ public function liquidRescaleImage(int $width, int $height, float $delta_x, floa

public function encipherImage(string $passphrase): bool {}

// PHP_ME(imagick, decipherimage, imagick_decipherimage_args, ZEND_ACC_PUBLIC)
public function decipherImage(string $passphrase): bool {}
#endif

Expand Down
Loading

0 comments on commit 8b89847

Please sign in to comment.