Skip to content

Commit 0b505ad

Browse files
committed
Temporary removed linear magic methods
1 parent daaada2 commit 0b505ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/phpFastCache/Cache/DriverBaseTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,22 +335,22 @@ public static function getValidOptions()
335335
* Serialization protection for frameworks
336336
* with profiler such as Symfony, etc.
337337
*/
338-
public function __sleep()
338+
/* public function __sleep()
339339
{
340340
$this->itemInstances = array_keys($this->itemInstances);
341341
return (array) array_keys(get_object_vars($this));
342-
}
342+
}*/
343343

344344
/**
345345
* Serialization protection for frameworks
346346
* with profiler such as Symfony, etc.
347347
*/
348-
public function __wakeup()
348+
/* public function __wakeup()
349349
{
350350
$itemInstances = $this->itemInstances;
351351
$this->itemInstances = [];
352352
foreach ($itemInstances as $itemInstance) {
353353
$this->itemInstances[$itemInstance] = $this->getItem($itemInstance);
354354
}
355-
}
355+
}*/
356356
}

src/phpFastCache/Cache/ItemBaseTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ public function getRemovedTags()
380380
/**
381381
* @throws \RuntimeException
382382
*/
383-
final public function __sleep()
383+
/* final public function __sleep()
384384
{
385385
$info = get_object_vars($this);
386386
$info[ 'driver' ] = 'object(' . get_class($info[ 'driver' ]) . ')';
387387
388388
return (array) $info;
389-
}
389+
}*/
390390

391391
/**
392392
* Prevent recursions for Debug (php 5.6+)

0 commit comments

Comments
 (0)