Skip to content
Snippets Groups Projects
Commit 055771f0 authored by Sean Femouw's avatar Sean Femouw Committed by Aaron Bauman
Browse files

Issue #3353317 by sean_fremouw: Deprecated function: substr(): Passing null to...

Issue #3353317 by sean_fremouw: Deprecated function: substr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase->pullValue()
parent 611fba50
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,7 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa
break;
case 'datetime':
if ($drupal_field_type === 'datetime_iso8601') {
if ($drupal_field_type === 'datetime_iso8601' && is_string($value)) {
$value = substr($value, 0, 19);
}
break;
......
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