Skip to content

Commit

Permalink
Fixed incompatible interface deprecations in DB Session Adapter (Open…
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev authored Sep 7, 2023
1 parent 1f10c60 commit 0b3d782
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/code/core/Mage/Core/Model/Resource/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @category Mage
* @package Mage_Core
*/
class Mage_Core_Model_Resource_Session implements Zend_Session_SaveHandler_Interface
class Mage_Core_Model_Resource_Session implements SessionHandlerInterface
{
/**
* Session maximum cookie lifetime
Expand Down Expand Up @@ -162,6 +162,7 @@ public static function setStaticSaveHandler()
* @param string $sessName ignored
* @return bool
*/
#[\ReturnTypeWillChange]
public function open($savePath, $sessName)
{
return true;
Expand All @@ -172,6 +173,7 @@ public function open($savePath, $sessName)
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function close()
{
$this->gc($this->getLifeTime());
Expand All @@ -185,6 +187,7 @@ public function close()
* @param string $sessId
* @return string
*/
#[\ReturnTypeWillChange]
public function read($sessId)
{
$select = $this->_read->select()
Expand All @@ -208,6 +211,7 @@ public function read($sessId)
* @param string $sessData
* @return bool
*/
#[\ReturnTypeWillChange]
public function write($sessId, $sessData)
{
$bindValues = [
Expand Down Expand Up @@ -241,6 +245,7 @@ public function write($sessId, $sessData)
* @param string $sessId
* @return bool
*/
#[\ReturnTypeWillChange]
public function destroy($sessId)
{
$where = ['session_id = ?' => $sessId];
Expand All @@ -254,6 +259,7 @@ public function destroy($sessId)
* @param int $sessMaxLifeTime ignored
* @return bool
*/
#[\ReturnTypeWillChange]
public function gc($sessMaxLifeTime)
{
if ($this->_automaticCleaningFactor > 0) {
Expand Down

0 comments on commit 0b3d782

Please sign in to comment.