diff --git a/src/Type/Php/RegexArrayShapeMatcher.php b/src/Type/Php/RegexArrayShapeMatcher.php index 36ebc13caa..9f969d93cc 100644 --- a/src/Type/Php/RegexArrayShapeMatcher.php +++ b/src/Type/Php/RegexArrayShapeMatcher.php @@ -200,7 +200,7 @@ private function getOnlyOptionalTopLevelGroup(array $captureGroups): ?RegexCaptu */ private function getOnlyTopLevelAlternationId(array $captureGroups): ?int { - $alternationID = null; + $alternationId = null; foreach ($captureGroups as $captureGroup) { if (!$captureGroup->isTopLevel()) { continue; @@ -210,14 +210,14 @@ private function getOnlyTopLevelAlternationId(array $captureGroups): ?int return null; } - if ($alternationID === null) { - $alternationID = $captureGroup->getAlternationId(); - } elseif ($alternationID !== $captureGroup->getAlternationId()) { + if ($alternationId === null) { + $alternationId = $captureGroup->getAlternationId(); + } elseif ($alternationId !== $captureGroup->getAlternationId()) { return null; } } - return $alternationID; + return $alternationId; } /**