Skip to content

Commit

Permalink
PHP 8.4 compatibility for Composer platform package installer plugin
Browse files Browse the repository at this point in the history
We currently perform the install using a bootstrapped minimal 8.3, but it doesn't hurt to be ready.
  • Loading branch information
dzuelke committed Dec 17, 2024
1 parent 110dc1b commit 1438056
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions support/installer/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "composer-plugin",
"name": "heroku/installer-plugin",
"version": "1.7.1",
"version": "1.7.2",
"autoload": {
"psr-4": {
"Heroku\\Buildpack\\PHP\\": "src/"
Expand All @@ -13,6 +13,7 @@
"plugin-modifies-install-path": true
},
"require": {
"composer-plugin-api": "^2.3.0"
"composer-plugin-api": "^2.3.0",
"php": ">=7.1"
}
}
6 changes: 3 additions & 3 deletions support/installer/src/NoopDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public function getInstallationSource(): string
return "dist";
}

public function download(PackageInterface $package, string $path, PackageInterface $prevPackage = null): PromiseInterface
public function download(PackageInterface $package, string $path, ?PackageInterface $prevPackage = null): PromiseInterface
{
return \React\Promise\resolve(null);
}

public function prepare(string $type, PackageInterface $package, string $path, PackageInterface $prevPackage = null): PromiseInterface
public function prepare(string $type, PackageInterface $package, string $path, ?PackageInterface $prevPackage = null): PromiseInterface
{
return \React\Promise\resolve(null);
}
Expand All @@ -50,7 +50,7 @@ public function remove(PackageInterface $package, string $path): PromiseInterfac
return \React\Promise\resolve(null);
}

public function cleanup(string $type, PackageInterface $package, string $path, PackageInterface $prevPackage = null): PromiseInterface
public function cleanup(string $type, PackageInterface $package, string $path, ?PackageInterface $prevPackage = null): PromiseInterface
{
return \React\Promise\resolve(null);
}
Expand Down

0 comments on commit 1438056

Please sign in to comment.