Problem/Motivation
Scanning with phpstan identifies some straightforward fixes:
Line web/modules/contrib/alternative_user_emails/alternative_user_emails.module
68 Call to function in_array() requires parameter #3 to be set.
68 Construct empty() is not allowed. Use more strict comparison.
73 Call to function in_array() requires parameter #3 to be set.
73 Construct empty() is not allowed. Use more strict comparison.
74 Call to function array_keys() requires parameter #3 to be set.
91 Function alternative_user_emails_entity_query_user_alter() has no return type specified.
110 Function _alternative_user_emails_expand_mail_condition() has no return type specified.
121 Call to function in_array() requires parameter #3 to be set.
Issue fork alternative_user_emails-3425184
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedThe MR contains (to the best of my knowledge) very safe additional type restrictions.
Comment #4
ptmkenny commentedComment #5
ptmkenny commented