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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user