The message is found several times in row in my watchdog table.
Checking the source code at the specified line we can clearly see that the problem is hardcoded:
$all_boolean = $instances && !(bool) array_filter('_field_collection_field_is_not_boolean');

Comments

andrea.cividini created an issue. See original summary.

BradK’s picture

I found this as well today, after updating to beta10. Hard to believe it's been in the wild for 3 months and is only now being noticed?

The easy solution is to replace the offending line with the ones from beta9, which makes sense and works. beta10 seems like just a typo.

  // Check whether all fields are booleans.
  //$all_boolean = $instances && !(bool) array_filter('_field_collection_field_is_not_boolean');
  $all_boolean = $instances && !(bool) array_filter($instances, function ($instance) {
    $field = field_info_field($instance['field_name']);
    return $field['type'] != 'list_boolean';
  });
ciwidda’s picture

Thanks a lot!

m.stenta’s picture

Status: Active » Closed (duplicate)

This was fixed shortly after the release: #2599248: array_filter() issue after upgrading to 7.x-1.0-beta10

Patch available in that issue - or use 7.x-1.x-dev release. Closing this as a duplicate.