3 declare(strict_types=1);
46 if (!is_array($from)) {
48 sprintf(
'The value "%s" is no array.', var_export($from,
true)),
55 foreach ($from as
$key => $value) {
56 if (!(is_int(
$key) || is_string(
$key))) {
58 'Key is not a string or int',
59 'key_is_no_string_or_int' 62 $transformedValue = $this->transformation->transform($value);
63 $result[(string)
$key] = $transformedValue;
trait DeriveApplyToFromTransform
trait DeriveInvokeFromTransform
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...