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