Skip to content

Commit

Permalink
udpate CHANGELOG
Browse files Browse the repository at this point in the history
and a minor formatting fix
  • Loading branch information
jcupitt committed Feb 14, 2024
1 parent c365be7 commit a2c7609
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions src/FFI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit a2c7609

Please sign in to comment.