Skip to content

Commit 4255f1f

Browse files
committed
34569: Fix Magento OS codebase for Integration Tests to be compatible with PHP 8.1
- remove duplicated logic
1 parent 1c5f589 commit 4255f1f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/Customer/Model/Options.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ public function getNamePrefixOptions($store = null)
6161
*/
6262
public function getNameSuffixOptions($store = null)
6363
{
64-
$options = $this->addressHelper->getConfig('suffix_options', $store);
65-
return $options !== null ? $this->prepareNamePrefixSuffixOptions(
66-
$options,
64+
return $this->prepareNamePrefixSuffixOptions(
65+
$this->addressHelper->getConfig('suffix_options', $store),
6766
$this->addressHelper->getConfig('suffix_show', $store) === NooptreqSource::VALUE_OPTIONAL
68-
) : false;
67+
);
6968
}
7069

7170
/**

0 commit comments

Comments
 (0)