Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 7, 2024
1 parent eb6a95a commit 5b43d50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Type/Php/FilterFunctionReturnTypeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ private function getOptions(Type $flagsType, int $filterValue): array

$optionNames = array_merge(['default'], $this->getFilterTypeOptions()[$filterValue] ?? []);
foreach ($optionNames as $optionName) {
$optionaNameType = new ConstantStringType($optionName);
if (!$optionsType->hasOffsetValueType($optionaNameType)->yes()) {
$optionalNameType = new ConstantStringType($optionName);
if (!$optionsType->hasOffsetValueType($optionalNameType)->yes()) {
$options[$optionName] = null;
continue;
}

$options[$optionName] = $optionsType->getOffsetValueType($optionaNameType);
$options[$optionName] = $optionsType->getOffsetValueType($optionalNameType);
}

return $options;
Expand Down

0 comments on commit 5b43d50

Please sign in to comment.