Skip to content
Snippets Groups Projects
Commit 7d83743c authored by joelpittet's avatar joelpittet
Browse files

Issue #3254188: PHP 8.0 compatibility

parent d410a653
No related branches found
No related tags found
No related merge requests found
......@@ -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'])),
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment