Permalink
Browse files

Merge pull request #52 from stof/clean_unset

Cleaned the use of unset on properties
  • Loading branch information...
2 parents 3f41533 + f6c6e3e commit 7f470194aaf53bffe26315a3233c3ad7e79f300e @tedivm tedivm committed Nov 28, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Stash/Driver/Sub/Sqlite.php
  2. +1 −1 tests/Stash/Test/AbstractCacheTest.php
@@ -48,7 +48,7 @@ public function __construct($path, $directoryPermission, $filePermission, $busyT
public function __destruct()
{
- unset($this->driver);
+ $this->driver = null;
}
public function get($key)
@@ -99,7 +99,7 @@ public function clear($key = null)
if (!isset($key)) {
unset($driver);
- unset($this->driver);
+ $this->driver = null;
$this->driver = false;
\Stash\Utilities::deleteRecursive($this->path);
} else {
@@ -310,7 +310,7 @@ public function testClear()
public function testExtendCache()
{
- unset($this->driver);
+ $this->driver = null;
foreach ($this->data as $type => $value) {
$key = array('base', $type);

0 comments on commit 7f47019

Please sign in to comment.