Skip to content

Commit

Permalink
cs fixes (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite authored Jan 16, 2024
1 parent 24724fd commit 612413f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SchemaReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ private function loadMinFromNode(\DOMElement $node, ?int $min): ?int
return null;
}

$minOccurs = intval($node->getAttribute('minOccurs'));
$minOccurs = (int) $node->getAttribute('minOccurs');

return max($min, $minOccurs);
}
Expand All @@ -415,7 +415,7 @@ private function loadMaxFromNode(\DOMElement $node, ?int $max): ?int
}

if (is_numeric($maxOccurs)) {
$maxOccurs = intval($maxOccurs);
$maxOccurs = (int) $maxOccurs;

if (null !== $max) {
return min($max, $maxOccurs);
Expand Down

0 comments on commit 612413f

Please sign in to comment.