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.               
Command icon 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

ptmkenny created an issue. See original summary.

ptmkenny’s picture

Status: Active » Needs review

The MR contains (to the best of my knowledge) very safe additional type restrictions.

ptmkenny’s picture

ptmkenny’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.