Refactor stage execution to use method references for improved clarity

This commit is contained in:
crazywhalecc 2025-12-09 15:01:41 +08:00
parent 808aed2a66
commit ac01867e9c
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -211,9 +211,9 @@ class PhpExtensionPackage extends Package
{
$env = $this->getSharedExtensionEnv();
$this->runStage('phpizeForUnix', ['env' => $env]);
$this->runStage('configureForUnix', ['env' => $env]);
$this->runStage('makeForUnix', ['env' => $env]);
$this->runStage([$this, 'phpizeForUnix'], ['env' => $env]);
$this->runStage([$this, 'configureForUnix'], ['env' => $env]);
$this->runStage([$this, 'makeForUnix'], ['env' => $env]);
// process *.so file
$soFile = BUILD_MODULES_PATH . '/' . $this->getExtensionName() . '.so';