Skip to content

Commit 686e149

Browse files
tanjiLKaemmerling
authored andcommitted
update: assignee_id must be nullable
A primary IP can be unassigned and therefore assignee_id will be null, which led to an exception.
1 parent aec81bb commit 686e149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/PrimaryIps/PrimaryIp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ class PrimaryIp extends Model implements Resource
9090
* @param array $labels
9191
* @param array|\LKDev\HetznerCloud\Models\Datacenters\Datacenter $datacenter
9292
* @param string $assignee_type
93-
* @param int $assignee_id
93+
* @param int|null $assignee_id
9494
* @param bool $auto_delete
9595
*/
96-
public function __construct(int $id, string $name, string $created, string $ip, string $type, array $dns_ptr, bool $blocked, $protection, array $labels, $datacenter, string $assignee_type, int $assignee_id, bool $auto_delete)
96+
public function __construct(int $id, string $name, string $created, string $ip, string $type, array $dns_ptr, bool $blocked, $protection, array $labels, $datacenter, string $assignee_type, int $assignee_id = null, bool $auto_delete)
9797
{
9898
$this->id = $id;
9999
$this->name = $name;

0 commit comments

Comments
 (0)