phpstan fix

This commit is contained in:
crazywhalecc 2025-03-24 23:51:24 +08:00
parent aa4d4db11f
commit 625a03e799
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

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')