*/ function some(mixed $value): Some { return new Some($value); } } if (!function_exists('none')) { function none(): None { return None::create(); } } if (!function_exists('toArray')) { function toArray(mixed $data): array { return \json_decode(\json_encode($data), true); } }