<?php$foo = function (int $val1, float $val2) : string { dump($val1, $val2); return $val1 + $val2;};dump($foo('4', 6));
^ 4
^ 6.0
^ "10"