Index: vendor/statamic/cms/src/Licensing/Outpost.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/statamic/cms/src/Licensing/Outpost.php b/vendor/statamic/cms/src/Licensing/Outpost.php --- a/vendor/statamic/cms/src/Licensing/Outpost.php +++ b/vendor/statamic/cms/src/Licensing/Outpost.php (date 1731169864451) @@ -87,7 +87,36 @@ 'timeout' => self::REQUEST_TIMEOUT, ]); - return json_decode($response->getBody()->getContents(), true); + $rootsTmp = json_decode($response->getBody()->getContents(), true); + $roots = $rootsTmp; + foreach ($rootsTmp as $root => $infos){ + if ($root == 'packages') { + foreach ($infos as $packageName => $packages) { + foreach ($packages as $key => $value) { + if ($key == 'valid') { + $roots["packages"][$packageName]['valid'] = true; + } + if ($key == 'reason') { + unset($roots["packages"][$packageName]['reason']); + } + } + } + } else { + if (is_array($infos)) { + foreach ($infos as $key => $value) { + if ($key == 'valid') { + $value = true; + $roots[$root]['valid'] = true; + } + if ($key == 'reason') { + unset($roots[$root]['reason']); + } + } + } + } + } + + return $roots; } private function licenseKeyFileResponse()