1
0
mirror of https://github.com/php/pie.git synced 2026-03-23 23:12:17 +01:00

434: ensure warning is not emitted when package manager does not have a package configured

This commit is contained in:
James Titcumb
2025-12-08 15:49:23 +00:00
parent 5b33c984e0
commit d0613824ed

View File

@@ -24,6 +24,10 @@ class BinaryBuildToolFinder
/** @return non-empty-string|null */
public function packageNameFor(PackageManager $packageManager): string|null
{
if (! array_key_exists($packageManager->value, $this->packageManagerPackages)) {
return null;
}
// If we need to customise specific package names depending on OS
// specific parameters, this is likely the place to do it
return $this->packageManagerPackages[$packageManager->value];