mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
feat: enhance type hints and improve verbosity handling in commands (#1186)
This commit is contained in:
@@ -75,6 +75,9 @@ class PackageInstaller
|
||||
}
|
||||
// special check for php target packages
|
||||
if (in_array($package->getName(), ['php', 'php-cli', 'php-fpm', 'php-micro', 'php-cgi', 'php-embed', 'frankenphp'], true)) {
|
||||
if (!$package instanceof TargetPackage) {
|
||||
throw new WrongUsageException("Package '{$package->getName()}' is expected to be a TargetPackage.");
|
||||
}
|
||||
$this->handlePhpTargetPackage($package);
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user