Skip to content

Commit

Permalink
micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Dec 17, 2022
1 parent 8e5b564 commit 8900cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Type/TypeCombinator.php
Expand Up @@ -512,11 +512,11 @@ private static function processArrayAccessoryTypes(array $arrayTypes): array
if ($innerType instanceof TemplateType) {
break;
}
if ($innerType instanceof HasOffsetValueType) {
$accessoryTypes[sprintf('hasOffsetValue(%s)', $innerType->getOffsetType()->describe(VerbosityLevel::cache()))][$i] = $innerType;
if (!($innerType instanceof AccessoryType) && !($innerType instanceof CallableType)) {
continue;
}
if (!($innerType instanceof AccessoryType) && !($innerType instanceof CallableType)) {
if ($innerType instanceof HasOffsetValueType) {
$accessoryTypes[sprintf('hasOffsetValue(%s)', $innerType->getOffsetType()->describe(VerbosityLevel::cache()))][$i] = $innerType;
continue;
}

Expand Down

0 comments on commit 8900cef

Please sign in to comment.