Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
7d83743c
Commit
7d83743c
authored
3 years ago
by
joelpittet
Browse files
Options
Downloads
Patches
Plain Diff
Issue #3254188: PHP 8.0 compatibility
parent
d410a653
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mappers/file.inc
+4
-1
4 additions, 1 deletion
mappers/file.inc
tests/feeds.test
+1
-1
1 addition, 1 deletion
tests/feeds.test
with
5 additions
and
2 deletions
mappers/file.inc
+
4
−
1
View file @
7d83743c
...
...
@@ -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'
])),
...
...
This diff is collapsed.
Click to expand it.
tests/feeds.test
+
1
−
1
View file @
7d83743c
...
...
@@ -676,7 +676,7 @@ class FeedsWebTestCase extends DrupalWebTestCase {
$nid
=
$matches
[
1
];
// Test for actual integerness.
$this
->
assert
True
(
$nid
===
(
string
)
(
int
)
$nid
,
'Node id is an integer.'
);
$this
->
assert
Identical
(
$nid
,
(
string
)
(
int
)
$nid
);
return
$nid
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment