3 declare(strict_types=1);
32 private const REG_INT =
'/^\s*(0|(-?[1-9]\d*))\s*$/';
43 if ($from !== INF && $from !== -INF && is_float($from) && !is_nan($from)) {
52 if (is_string($from) && preg_match(self::REG_INT, $from)) {
58 if (trim($from) === (string) $int) {
64 sprintf(
'The value "%s" can not be transformed into an integer', var_export($from,
true)),
trait DeriveApplyToFromTransform
trait DeriveInvokeFromTransform
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...