diff --git a/src/Command/CommandBase.php b/src/Command/CommandBase.php index 5c7a2074b..1d07953d4 100644 --- a/src/Command/CommandBase.php +++ b/src/Command/CommandBase.php @@ -1242,9 +1242,11 @@ private static function getNotificationUuid(string $notification): string { if (is_object($json)) { return self::getNotificationUuidFromResponse($json); } - // In rare cases, JSON can decode to a string that's a valid UUID. - self::validateUuid($json); - return $json; + if (is_string($json)) { + // In rare cases, JSON can decode to a string that's a valid UUID. + self::validateUuid($json); + return $json; + } } catch (JsonException | AcquiaCliException | ValidatorException) { }