From 612413f75c5e9e0f954c5fdffe4680456466282b Mon Sep 17 00:00:00 2001 From: Axel Guckelsberger Date: Tue, 16 Jan 2024 09:13:13 +0100 Subject: [PATCH] cs fixes (#78) --- src/SchemaReader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SchemaReader.php b/src/SchemaReader.php index 199b93fc..59f89655 100644 --- a/src/SchemaReader.php +++ b/src/SchemaReader.php @@ -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); } @@ -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);