If you have a custom integer field defined under projects.custom-field-definitions, then
when creating or editing a project under PHP 8.1 it will fail with strlen(null) errors.
As the integer fields have int values, we can't replace the strlen() with phutil_nonempty_string(), but replacing it with a simple null check does the job.