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;
    }
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;
    }
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 ; }
Converts the value into object if needed.

@param int $index
Converts the value into object if needed .