Skip to content

Commit ee7b451

Browse files
committed
Increment Decrement Error Fix
1 parent 612787e commit ee7b451

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/KVOption.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function setArray($array)
124124
*
125125
* @return int|null|string
126126
*/
127-
public function increment($key, int $factor = 1)
127+
public function incrementValue($key, int $factor = 1)
128128
{
129129
$currentValue = $this->get($key) ?? 0;
130130
$newValue = $currentValue + $factor;
@@ -145,7 +145,7 @@ public function increment($key, int $factor = 1)
145145
*
146146
* @return int|null|string
147147
*/
148-
public function decrement($key, int $factor = 1)
148+
public function decrementValue($key, int $factor = 1)
149149
{
150150
$currentValue = $this->get($key) ?? 0;
151151
$newValue = $currentValue - $factor;

src/KVOptionJSON.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setArray($array)
8989
*
9090
* @return int|null|string
9191
*/
92-
public function increment($key, int $factor = 1)
92+
public function incrementValue($key, int $factor = 1)
9393
{
9494
$currentValue = $this->get($key) ?? 0;
9595
$newValue = $currentValue + $factor;
@@ -107,7 +107,7 @@ public function increment($key, int $factor = 1)
107107
*
108108
* @return int|null|string
109109
*/
110-
public function decrement($key, int $factor = 1)
110+
public function decrementValue($key, int $factor = 1)
111111
{
112112
$currentValue = $this->get($key) ?? 0;
113113
$newValue = $currentValue - $factor;

0 commit comments

Comments
 (0)