19 declare(strict_types=1);
49 $from === self::BOOL_TRUE_NUMBER
50 || $from === self::BOOL_TRUE_NUMBER_STRING
51 || (is_string($from) && mb_strtolower($from) === self::BOOL_TRUE_STRING)
57 $from === self::BOOL_FALSE_NUMBER
58 || $from === self::BOOL_FALSE_NUMBER_STRING
59 || (is_string($from) && mb_strtolower($from) === self::BOOL_FALSE_STRING)
65 sprintf(
'The value "%s" could not be transformed into boolean.', var_export($from,
true)),
trait DeriveInvokeFromTransform
trait DeriveApplyToFromTransform