Skip to content

Commit 95caf91

Browse files
committed
bump plugin-api-version for no lock file present case to allow Composer 2.8 which works with PHP 8.4
1 parent eca1346 commit 95caf91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/util/platform.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ function mkmetas($package, array &$metapaks, &$have_runtime_req = false) {
194194
if($metapaks) $repositories[] = ["type" => "package", "package" => $metapaks];
195195
} else {
196196
// default to using Composer 2 if there is no lock file
197-
$lock["plugin-api-version"] = "2.2.0";
197+
// 2.6.0 will allow any current 2.x Composer version (see further below), which means 2.8 is possible
198+
// that matters because the LTS Composer 2.2 (which we'd get if we used "2.2.0" here) throws countless deprecation warnings
199+
$lock["plugin-api-version"] = "2.6.0";
198200
}
199201

200202
// if no PHP is required anywhere, we need to add something

0 commit comments

Comments
 (0)