Skip to content

Commit 3b0cf8b

Browse files
Jens Prangenbergjprangenbergde
andauthored
fixes nullable port (#81)
Co-authored-by: Jens Prangenberg <[email protected]>
1 parent 79fac89 commit 3b0cf8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Firewalls/Firewall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static function parse($input): ?self
118118
$rules = [];
119119

120120
foreach ($input->rules as $r) {
121-
$rules[] = new FirewallRule($r->direction, $r->protocol, $r->source_ips, $r->destination_ips, $r->port);
121+
$rules[] = new FirewallRule($r->direction, $r->protocol, $r->source_ips, $r->destination_ips, (string) $r->port);
122122
}
123123

124124
foreach ($input->applied_to as $a) {

0 commit comments

Comments
 (0)