Skip to content

Commit 9f1036d

Browse files
committed
Merge remote-tracking branch 'origin/7.x' into 7.x
2 parents 02d35b4 + 340e451 commit 9f1036d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Cache/ArrayStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function put($key, $value, $seconds)
9393
*/
9494
public function increment($key, $value = 1)
9595
{
96-
if ($existing = $this->get($key)) {
96+
if (! is_null($existing = $this->get($key))) {
9797
return tap(((int) $existing) + $value, function ($incremented) use ($key) {
9898
$value = $this->serializesValues ? serialize($incremented) : $incremented;
9999

0 commit comments

Comments
 (0)