Skip to content

Rewrite ParseValue #47

@StanBarrows

Description

@StanBarrows
  • default => null
  • Convert to Arr Helper (Arr::get($value, null)
  return match ($field['ItemElementName']) {
            'Int' => (int) $field['Item'],
            'Decimal' => (float) $field['Item'],
            'Date', 'DateTime' => self::date($field['Item']),
            'Keywords' => implode(', ', $field['Item']['Keyword']),
            'Table' => self::table($field['Item']),
            default => (string) $field['Item'],
        };

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions