phpstan fix

This commit is contained in:
crazywhalecc
2026-02-05 16:30:58 +08:00
parent 9f2132c001
commit 81ce777bf2

View File

@@ -9,6 +9,7 @@ use StaticPHP\DI\ApplicationContext;
use StaticPHP\Exception\PatchException;
use StaticPHP\Exception\SPCInternalException;
use StaticPHP\Exception\ValidationException;
use StaticPHP\Exception\WrongUsageException;
use StaticPHP\Runtime\SystemTarget;
use StaticPHP\Util\DependencyResolver;
use StaticPHP\Util\DirDiff;
@@ -245,6 +246,7 @@ class LibraryPackage extends Package
'Windows' => '{name}-{arch}-{os}.tgz',
'Darwin' => '{name}-{arch}-{os}.txz',
'Linux' => '{name}-{arch}-{os}-{libc}-{libcver}.txz',
default => throw new WrongUsageException('Unsupported OS for packing prebuilt library: ' . SystemTarget::getTargetOS()),
};
$replace = [
'{name}' => $this->getName(),