Skip to content

Commit

Permalink
FRW-475 Compatibility with PHP 8.2. (#9731)
Browse files Browse the repository at this point in the history
FRW-475 Compatibility with PHP 8.2
  • Loading branch information
geega authored Dec 1, 2022
1 parent 9eb47e0 commit fbfb12a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(KeyFilterInterface $keyFilter)
*/
public function generateKey(SynchronizationDataTransfer $dataTransfer)
{
$reference = $this->keyFilter->escapeKey($dataTransfer->getReference());
$reference = $dataTransfer->getReference() ? $this->keyFilter->escapeKey($dataTransfer->getReference()) : null;
$localeAndStore = $this->getStoreAndLocaleKey($dataTransfer);
if ($reference && $localeAndStore) {
$keySuffix = sprintf('%s:%s', $this->getStoreAndLocaleKey($dataTransfer), $reference);
Expand Down

0 comments on commit fbfb12a

Please sign in to comment.