original_string: private function internalDataListUpdateValueIfNeeded(&$data, $index)
      {
          $value = $data[$index];
          if (is_callable($value)) {
              $value = call_user_func($value);
              $data[$index] = $value;
          }
          if (is_object($value)) {
              return $value;
          }
          $value = (object) $value;
          $data[$index] = $value;
          return $value;
      }
code: private function internalDataListUpdateValueIfNeeded(&$data, $index)
      {
          $value = $data[$index];
          if (is_callable($value)) {
              $value = call_user_func($value);
              $data[$index] = $value;
          }
          if (is_object($value)) {
              return $value;
          }
          $value = (object) $value;
          $data[$index] = $value;
          return $value;
      }
code_tokens: private function internalDataListUpdateValueIfNeeded ( & $ data , $ index ) { $ value = $ data [ $ index ] ; if ( is_callable ( $ value ) ) { $ value = call_user_func ( $ value ) ; $ data [ $ index ] = $ value ; } if ( is_object ( $ value ) ) { return $ value ; } $ value = ( object ) $ value ; $ data [ $ index ] = $ value ; return $ value ; }
docstring: Converts the value into object if needed.
  
  @param int $index
docstring_tokens: Converts the value into object if needed .