phpstan fix

This commit is contained in:
crazywhalecc
2025-03-24 23:51:24 +08:00
parent aa4d4db11f
commit 625a03e799

View File

@@ -266,7 +266,7 @@ class Extension
{
// prepare configure args
shell()->cd($this->source_dir)
->setEnv(['CFLAGS' => $this->builder->arch_c_flags])
->setEnv(['CFLAGS' => $this->builder->arch_c_flags ?? ''])
->execWithEnv(BUILD_BIN_PATH . '/phpize')
->execWithEnv('./configure ' . $this->getUnixConfigureArg() . ' --with-php-config=' . BUILD_BIN_PATH . '/php-config --enable-static --disable-shared')
->execWithEnv('make clean')