diff --git a/src/subsystems/php/semver.nix b/src/subsystems/php/semver.nix index 20917ec1..59581ec2 100644 --- a/src/subsystems/php/semver.nix +++ b/src/subsystems/php/semver.nix @@ -20,8 +20,7 @@ mkCaretComparison = version: v: let ver = builtins.splitVersion v; major = l.toInt (l.head ver); - minor = builtins.toString (l.toInt (l.head ver) + 1); - upper = builtins.concatStringsSep "." (ireplace 0 minor ver); + upper = builtins.toString (l.toInt (l.head ver) + 1); in if major == 0 then mkTildeComparison version v