Skip to content

Commit 2c80954

Browse files
kiatngsreichel
andauthored
Fixed null deprecation array_keys in Multishipping. (OpenMage#4418)
* Fixed null deprecation array_keys in Multishipping. * Update app/code/core/Mage/Core/Model/Session.php Co-authored-by: Sven Reichel <github-sr@hotmail.com> --------- Co-authored-by: Sven Reichel <github-sr@hotmail.com>
1 parent c9a901f commit 2c80954

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/core/Mage/Core/Model/Session.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* @method $this setCurrencyCode(string $value)
2929
* @method $this setFormData(array $value)
3030
* @method int getJustVotedPoll()
31-
* @method array getOrderIds()
3231
* @method $this setOrderIds(array $value)
3332
* @method $this setJustVotedPoll(int $value)
3433
* @method $this setLastUrl(string $value)
@@ -75,4 +74,9 @@ public function validateFormKey($formKey)
7574
{
7675
return ($formKey === $this->getFormKey());
7776
}
77+
78+
public function getOrderIds(bool $clear = false): array
79+
{
80+
return $this->getData('order_ids', $clear) ?? [];
81+
}
7882
}

0 commit comments

Comments
 (0)