Commit 7d83743c authored by Joël Pittet's avatar Joël Pittet
Browse files

Issue #3254188: PHP 8.0 compatibility

parent d410a653
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -34,7 +34,10 @@ function file_feeds_processor_targets($entity_type, $bundle_name) {

  foreach (field_info_instances($entity_type, $bundle_name) as $name => $instance) {
    $info = field_info_field($name);

    // Continue if the field was not found.
    if (!$info) {
      continue;
    }
    if (in_array($info['type'], array('file', 'image'))) {
      $targets[$name . ':uri'] = array(
        'name' => t('@label: URI', array('@label' => $instance['label'])),
+1 −1
Original line number Diff line number Diff line
@@ -676,7 +676,7 @@ class FeedsWebTestCase extends DrupalWebTestCase {
    $nid = $matches[1];

    // Test for actual integerness.
    $this->assertTrue($nid === (string) (int) $nid, 'Node id is an integer.');
    $this->assertIdentical($nid, (string) (int) $nid);

    return $nid;
  }