To make phan stricter to catch more issues like T316575, also the Translate extension should disable the following phan config (which make phan stricter)
// These are too spammy for now. TODO enable $cfg['null_casts_as_any_type'] = true; $cfg['scalar_implicit_cast'] = true;