src/PeekAndPoke/Component/Formal/Mapper/ArrayKeysMapper.php
public function mapFromForm($value)
    {
        $data  = [];
        $value = ArrayUtil::ensureArray($value);

        $arrayValues = ArrayUtil::ensureArray(array_values($value));

        foreach ($arrayValues as $arrayKeyIterator) {
            $data[$arrayKeyIterator] = $this->valueProvider->getValue();
        }

        return $data;
    }
public function mapFromForm($value)
    {
        $data  = [];
        $value = ArrayUtil::ensureArray($value);

        $arrayValues = ArrayUtil::ensureArray(array_values($value));

        foreach ($arrayValues as $arrayKeyIterator) {
            $data[$arrayKeyIterator] = $this->valueProvider->getValue();
        }

        return $data;
    }
@param string[] $value |null

@return string[]