Skip to content

Commit 4e77168

Browse files
GrahamCampbellsdwru
andcommitted
Changed the signature of Firewall::update to allow partial changes
Fixes #328 Co-Authored-By: sdwru <[email protected]>
1 parent d831779 commit 4e77168

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGE LOG
99
* Moved various param types to native PHP types
1010
* Add `floatingIpLimit` to `Account` entity
1111
* Add support for `custom` and `snapshot` image types
12+
* Changed the signature of `Firewall::update` to allow partial changes
1213

1314

1415
## 4.9.1 (23/02/2025)

src/Api/Firewall.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ public function remove(string $id): void
7979
/**
8080
* @throws ExceptionInterface
8181
*/
82-
public function update(string $id, FirewallEntity $firewall): FirewallEntity
82+
public function update(string $id, array $data): FirewallEntity
8383
{
84-
$data = $firewall->toArray();
85-
8684
$result = $this->put(\sprintf('firewalls/%s', $id), $data);
8785

8886
return new FirewallEntity($result->firewall);

0 commit comments

Comments
 (0)