Commit d86ab9ca authored by Mingsong's avatar Mingsong Committed by Jacob Rockowitz
Browse files

Issue #3281572 by Mingsong: PHP 8 - TypeError: Illegal offset type in isset or...

Issue #3281572 by Mingsong: PHP 8 - TypeError: Illegal offset type in isset or empty in OptionsBase.php
parent e079a578
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -812,7 +812,7 @@ abstract class OptionsBase extends WebformElementBase {
      /** @var \Drupal\webform\Element\WebformOtherBase $class */
      $class = $this->getFormElementClassDefinition();
      $type = $class::getElementType();
      if (is_array($value) && count($value) === 2 && isset($value[$type]) && isset($value['other'])) {
      if (is_array($value) && count($value) === 2 && array_key_exists($type, $value) && isset($value['other'])) {
        $value = $class::processValue($element, $value);
      }