Skip to content

Commit

Permalink
fixes nullable port (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: Jens Prangenberg <jens.prangenberg@check24.de>
  • Loading branch information
Jens Prangenberg and Jens Prangenberg committed Oct 12, 2021
1 parent 79fac89 commit 3b0cf8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Firewalls/Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static function parse($input): ?self
$rules = [];

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

foreach ($input->applied_to as $a) {
Expand Down

0 comments on commit 3b0cf8b

Please sign in to comment.