Skip to content

Commit b3cb91a

Browse files
committed
~ remove deprecated revalidateCookie
1 parent 754a1f3 commit b3cb91a

4 files changed

Lines changed: 0 additions & 31 deletions

File tree

.phpstan.dist.baselines/method.childReturnType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,6 @@
291291
'count' => 1,
292292
'path' => __DIR__ . '/../app/code/core/Mage/Api/Model/Session.php',
293293
];
294-
$ignoreErrors[] = [
295-
'rawMessage' => 'Return type (void) of method Mage_Api_Model_Session::revalidateCookie() should be compatible with return type ($this(Mage_Core_Model_Session_Abstract_Varien)) of method Mage_Core_Model_Session_Abstract_Varien::revalidateCookie()',
296-
'count' => 1,
297-
'path' => __DIR__ . '/../app/code/core/Mage/Api/Model/Session.php',
298-
];
299294
$ignoreErrors[] = [
300295
'rawMessage' => 'Return type (Mage_Core_Model_Abstract) of method Mage_Api_Model_User::delete() should be covariant with return type ($this(Mage_Core_Model_Abstract)) of method Mage_Core_Model_Abstract::delete()',
301296
'count' => 1,

.phpstan.dist.baselines/method.deprecated.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@
192192
'count' => 1,
193193
'path' => __DIR__ . '/../app/code/core/Mage/Core/Model/Layout/Update.php',
194194
];
195-
$ignoreErrors[] = [
196-
'rawMessage' => 'Call to deprecated method revalidateCookie() of class Mage_Core_Model_Session_Abstract_Varien:
197-
after 1.4 cookie renew moved to session start method',
198-
'count' => 1,
199-
'path' => __DIR__ . '/../app/code/core/Mage/Core/Model/Session/Abstract/Varien.php',
200-
];
201195
$ignoreErrors[] = [
202196
'rawMessage' => 'Call to deprecated method isCurrentlySecure() of class Mage_Core_Model_Store.',
203197
'count' => 3,

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ public function setSessionId($sessId = null)
7474
return $this;
7575
}
7676

77-
/**
78-
* @return void
79-
*/
80-
#[Override]
81-
public function revalidateCookie()
82-
{
83-
// In api we don't use cookies
84-
}
85-
8677
/**
8778
* @return bool
8879
*/

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,6 @@ public function getCookie()
269269
return Mage::getSingleton('core/cookie');
270270
}
271271

272-
/**
273-
* Revalidate cookie
274-
* @return $this
275-
*/
276-
#[Deprecated(message: 'after 1.4 cookie renew moved to session start method')]
277-
public function revalidateCookie()
278-
{
279-
return $this;
280-
}
281-
282272
/**
283273
* Init session with namespace
284274
*
@@ -300,7 +290,6 @@ public function init($namespace, $sessionName = null)
300290
$this->_data = &$_SESSION[$namespace];
301291

302292
$this->validate();
303-
$this->revalidateCookie();
304293

305294
return $this;
306295
}

0 commit comments

Comments
 (0)