From f98140e181702e367b582db205686bbb0fc63ac1 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Mon, 29 May 2023 16:59:13 +0100 Subject: [PATCH] [REF][PHP8.2] Declare siteDefaultCountry property --- CRM/Import/Parser.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index bfce7cdaef..8386bcae81 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -90,6 +90,11 @@ abstract class CRM_Import_Parser implements UserJobInterface { */ protected $statesByCountry = []; + /** + * @var int|null + */ + protected $siteDefaultCountry = NULL; + /** * @return int|null */ @@ -1954,7 +1959,7 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @return int */ protected function getSiteDefaultCountry(): int { - if (!isset($this->siteDefaultCountry)) { + if ($this->siteDefaultCountry === NULL) { $this->siteDefaultCountry = (int) Civi::settings()->get('defaultContactCountry'); } return $this->siteDefaultCountry; -- 2.25.1