Closed mateusz324 closed 5 years ago
In a: https://github.com/LKDevelopment/hetzner-cloud-php-sdk/blob/master/src/Models/Servers/Server.php#L354
you should change this code:
return APIResponse::create([ 'action' => Action::parse(json_decode((string)$response->getBody())->action) ], $response->getHeaders());
on this:
$payload = json_decode((string)$response->getBody()); return APIResponse::create(array_merge([ 'action' => Action::parse($payload->action), ], (property_exists($payload, 'root_password')) ? ['root_password' => $payload->root_password] : [] ), $response->getHeaders());
Was released with v1.6.1
In a: https://github.com/LKDevelopment/hetzner-cloud-php-sdk/blob/master/src/Models/Servers/Server.php#L354
you should change this code:
on this: