Skip to content

Commit ac01867

Browse files
committed
Refactor stage execution to use method references for improved clarity
1 parent 808aed2 commit ac01867

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/StaticPHP/Package/PhpExtensionPackage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ public function buildSharedForUnix(PackageBuilder $builder): void
211211
{
212212
$env = $this->getSharedExtensionEnv();
213213

214-
$this->runStage('phpizeForUnix', ['env' => $env]);
215-
$this->runStage('configureForUnix', ['env' => $env]);
216-
$this->runStage('makeForUnix', ['env' => $env]);
214+
$this->runStage([$this, 'phpizeForUnix'], ['env' => $env]);
215+
$this->runStage([$this, 'configureForUnix'], ['env' => $env]);
216+
$this->runStage([$this, 'makeForUnix'], ['env' => $env]);
217217

218218
// process *.so file
219219
$soFile = BUILD_MODULES_PATH . '/' . $this->getExtensionName() . '.so';

0 commit comments

Comments
 (0)