// if ($account->hasField($field->getName()) && !$account->get($field->getName())->isEmpty())

I think that the missing parentheses.

// $missing_components = array_diff(array_keys($minimum_components), array_keys($item_components));

If I understand correctly we need only the keys.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webflo’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Thanks for all your patches. Could you reroll this one?

devpreview’s picture

Status: Needs work » Needs review
FileSize
1.99 KB

Thanks for your work!
I prepared a patch with the remaining changes.

devpreview’s picture

FileSize
422 bytes

Check if user is anonymous.

devpreview’s picture

devpreview’s picture

Forgotten parentheses operator comparisons

  • webflo committed 7819568 on 8.x-1.x
    Issue #2454607-3 by devpreview, webflo: Add type hint to...

  • webflo committed c161b2b on 8.x-1.x authored by devpreview
    Issue #2454607 by devpreview: Fix missing parentheses in name_user_load
    
webflo’s picture

Status: Needs review » Fixed

Good catch. Thanks!

Status: Fixed » Closed (fixed)

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