2declare(strict_types=1);
39 if (
false === is_array($from)) {
41 'The value MUST be an array',
47 foreach ($from as $key => $value) {
48 if (
false === is_string($key)) {
50 'The key "%s" is NOT a string',
55 $transformedValue = $this->transformation->transform($value);
56 $result[$key] = $transformedValue;
An exception for terminatinating execution or to throw for unit testing.
trait DeriveInvokeFromTransform
trait DeriveApplyToFromTransform