From https://integration.wikimedia.org/ci/job/mwext-php72-phan-docker/52494/console which is based on patch set 1 of https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/CheckUser/+/596495/ we see:
<error line="109" severity="info" message="Argument 2 ($value) is ?0|?non-zero-int but \ApiQueryCheckUser::addWhereFld() takes int|int[]|string|string[] defined at ../../includes/api/ApiQueryBase.php:267 (expected type to be non-nullable)" source="PhanTypeMismatchArgumentNullable"/>
The value of argument 2, i.e. $user_id comes from User::getIdFromName() which can only return null or an int. I even changed line 104 to explicitly check for nulls, but phan is still not a big fan of my patch.