Skip to content

Commit 14907ac

Browse files
committed
Fix parsing composer.json for configure args
1 parent e7c859f commit 14907ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/BuildPhpExtension/private/Get-ExtensionConfig.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Function Get-ExtensionConfig {
9595
if(Test-Path composer.json) {
9696
$composerJson = Get-Content composer.json -Raw | ConvertFrom-Json
9797
}
98-
if($null -ne $composerJson -and $null -ne $composerJson."php-ext") {
98+
if($null -ne $composerJson -and $null -ne $composerJson."php-ext" -and $null -ne $composerJson."php-ext"."configure-options") {
9999
$composerJson."php-ext"."configure-options" | ForEach-Object {
100100
$config.options += "--$( $_.name )"
101101
}

0 commit comments

Comments
 (0)