From f0143ac2d7aa14d71b5b8d9866f15ef8e85b51df Mon Sep 17 00:00:00 2001 From: lucastockmann <lucastockmann@2199850.no-reply.drupal.org> Date: Mon, 9 Aug 2021 09:13:50 -0400 Subject: [PATCH] Issue #3222940 by lucastockmann: Salesforce Mapping: Wrong use of short if statement --- modules/salesforce_mapping/src/Entity/SalesforceMapping.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/salesforce_mapping/src/Entity/SalesforceMapping.php b/modules/salesforce_mapping/src/Entity/SalesforceMapping.php index 8824ca49..5c768feb 100644 --- a/modules/salesforce_mapping/src/Entity/SalesforceMapping.php +++ b/modules/salesforce_mapping/src/Entity/SalesforceMapping.php @@ -565,7 +565,7 @@ class SalesforceMapping extends ConfigEntityBase implements SalesforceMappingInt * {@inheritdoc} */ public function getLastDeleteTime() { - return $this->pull_info['last_delete_timestamp'] ? $this->pull_info['last_delete_timestamp'] : NULL; + return $this->pull_info['last_delete_timestamp'] ?? NULL; } /** @@ -579,7 +579,7 @@ class SalesforceMapping extends ConfigEntityBase implements SalesforceMappingInt * {@inheritdoc} */ public function getLastPullTime() { - return $this->pull_info['last_pull_timestamp'] ? $this->pull_info['last_pull_timestamp'] : NULL; + return $this->pull_info['last_pull_timestamp'] ?? NULL; } /** -- GitLab