Skip to content

Commit

Permalink
Merge pull request #52 from stof/clean_unset
Browse files Browse the repository at this point in the history
Cleaned the use of unset on properties
  • Loading branch information
tedivm committed Nov 28, 2012
2 parents 3f41533 + f6c6e3e commit 7f47019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Stash/Driver/Sub/Sqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct($path, $directoryPermission, $filePermission, $busyT

public function __destruct()
{
unset($this->driver);
$this->driver = null;
}

public function get($key)
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/Stash/Test/AbstractCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7f47019

Please sign in to comment.