1<?
php declare(strict_types=1);
29 if (!is_array($from)) {
31 sprintf(
'The value "%s" is no array.', $from),
38 foreach ($from as $key => $value) {
39 if (!is_string($key)) {
41 'Key is not a string',
45 $transformedValue = $this->transformation->transform($value);
46 $result[$key] = $transformedValue;
An exception for terminatinating execution or to throw for unit testing.
trait DeriveInvokeFromTransform
trait DeriveApplyToFromTransform