<?php var_dump( (int)null ); // casting null to int works fine function f(int $i) { } 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.