<?php function f(int $i){} var_dump( (int)null ); // casting null to int works fine f('1'); // string is coerced fine f(null); // null is not coerced at all
You have javascript disabled. You will not be able to edit any code.