Skip to content

Commit d81c748

Browse files
committed
passing --build-embed sets the result to NULL, not true (and not false, like for options that are not passed)
1 parent 7f9da64 commit d81c748

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SPC/command/BuildPHPCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ private function parseRules(array $shared_extensions = []): int
295295
$rule |= ($this->getOption('build-micro') ? BUILD_TARGET_MICRO : BUILD_TARGET_NONE);
296296
$rule |= ($this->getOption('build-fpm') ? BUILD_TARGET_FPM : BUILD_TARGET_NONE);
297297
$embed = $this->getOption('build-embed');
298+
$embed = $embed === null ? true : $embed;
298299
if (!$embed && !empty($shared_extensions)) {
299300
$embed = true;
300301
}

0 commit comments

Comments
 (0)