On 03.02.2019 at 19:39, David Rodrigues wrote:

> overload function sum(int $a, int $b): int;
> overload function sum(float $b, float $b): float;

Which function would sum(17.4, 42) call?  Also consider:

  sum(PHP_INT_MAX, PHP_INT_MAX)

vs.

  sum(PHP_INT_MAX+1, PHP_INT_MAX+1)

-- 
Christoph M. Becker

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to