From a2c7609089d3f0a83def80ea59d2934c6f83ceb4 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 14 Feb 2024 13:05:45 +0000 Subject: [PATCH] udpate CHANGELOG and a minor formatting fix --- CHANGELOG.md | 3 +++ src/FFI.php | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4e6616..efa435f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ All notable changes to `:vips` will be documented in this file. - added `animate-image.php` example [jcupitt] - added flags support [jcupitt] - added `keep.php` example [jcupitt] +- added streaming examples [jcupitt] +- fix php 8.3 compatibility [uuf6429] +- better library finding [uuf6429] ## 2.3.0 - 2023-09-26 diff --git a/src/FFI.php b/src/FFI.php index 1ac0585..3fc8a97 100644 --- a/src/FFI.php +++ b/src/FFI.php @@ -163,9 +163,10 @@ public static function version(): string */ public static function atLeast(int $x, int $y, int $z = 0): bool { - return self::$library_major > $x - || (self::$library_major === $x && self::$library_minor > $y) - || (self::$library_major === $x && self::$library_minor === $y && self::$library_micro >= $z); + return self::$library_major > $x || + (self::$library_major === $x && self::$library_minor > $y) || + (self::$library_major === $x && self::$library_minor === $y && + self::$library_micro >= $z); } /**