Skip to content

Commit

Permalink
40398 update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
yeneastgate committed Jan 16, 2024
1 parent 1a1e400 commit 16dcf8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/Field/OutputFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ public function getVisibleFilterableFields(

$allFields = array_merge($fieldsArray, array_keys($geoFields));
$valuesDefault = array_map(function($field) use ($geoFields, $pInputVariableReader) {
$value = $pInputVariableReader->getFieldValueFormatted($field);
return $value === false ? false : $value;
$fieldValue = $pInputVariableReader->getFieldValueFormatted($field);
$geoFieldValue = $geoFields[$field] ?? null;
return $fieldValue === false ? false : ($fieldValue !== null ? true : ($geoFieldValue !== null ? true : null));
}, $allFields);

$resultDefault = array_combine($allFields, $valuesDefault);
Expand Down

0 comments on commit 16dcf8a

Please sign in to comment.