Skip to content

Commit

Permalink
Preapre v2.0.3 release.
Browse files Browse the repository at this point in the history
Fixes compatibility with PHP 7.0.x.

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jul 30, 2018
1 parent 00e7c37 commit a51e149
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `laravie/cabinet`.

## 2.0.3

Released: 2018-07-30

### Fixes

* Fixes compatibility with PHP 7.0.+.

## 2.0.2

Released: 2018-07-30
Expand Down
4 changes: 3 additions & 1 deletion src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ protected function getFromStorage(string $key, $duration, callable $callback)

try {
return $this->storage->remember($key, $duration, $callback);
} catch (Exception | Throwable $e) {
} catch (Exception $e) {
$this->storage->forget($key);
} catch (Throwable $e) {
$this->storage->forget($key);
}

Expand Down

0 comments on commit a51e149

Please sign in to comment.