We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a075ea8 commit 155ade7Copy full SHA for 155ade7
PhpManager/private/Get-PhpManagerConfigurationKey.ps1
@@ -31,7 +31,8 @@ Function Get-PhpManagerConfigurationKey
31
If ($folder) {
32
$path = Join-Path -Path $folder -ChildPath 'phpmanager.json'
33
If (Test-Path -PathType Leaf -LiteralPath $path) {
34
- $json = Get-Content -LiteralPath $path | ConvertFrom-Json
+ $content = @(Get-Content -LiteralPath $path) -join ''
35
+ $json = ConvertFrom-Json -InputObject $content
36
If ($json.PSobject.Properties.name -eq $Key) {
37
$result = $json.$Key
38
If ($null -ne $result) {
0 commit comments