File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,10 @@ public function timeout(int $milliseconds): InsertOptions
77
77
public function expiry ($ seconds ): InsertOptions
78
78
{
79
79
if ($ seconds instanceof DateTimeInterface) {
80
+ $ this ->expirySeconds = null ;
80
81
$ this ->expiryTimestamp = $ seconds ->getTimestamp ();
81
82
} else {
83
+ $ this ->expiryTimestamp = null ;
82
84
$ this ->expirySeconds = (int )$ seconds ;
83
85
}
84
86
return $ this ;
Original file line number Diff line number Diff line change @@ -95,8 +95,10 @@ public function cas(string $cas): MutateInOptions
95
95
public function expiry ($ seconds ): MutateInOptions
96
96
{
97
97
if ($ seconds instanceof DateTimeInterface) {
98
+ $ this ->expirySeconds = null ;
98
99
$ this ->expiryTimestamp = $ seconds ->getTimestamp ();
99
100
} else {
101
+ $ this ->expiryTimestamp = null ;
100
102
$ this ->expirySeconds = (int )$ seconds ;
101
103
}
102
104
return $ this ;
Original file line number Diff line number Diff line change @@ -78,8 +78,10 @@ public function timeout(int $milliseconds): ReplaceOptions
78
78
public function expiry ($ seconds ): ReplaceOptions
79
79
{
80
80
if ($ seconds instanceof DateTimeInterface) {
81
+ $ this ->expirySeconds = null ;
81
82
$ this ->expiryTimestamp = $ seconds ->getTimestamp ();
82
83
} else {
84
+ $ this ->expiryTimestamp = null ;
83
85
$ this ->expirySeconds = (int )$ seconds ;
84
86
}
85
87
return $ this ;
Original file line number Diff line number Diff line change @@ -77,8 +77,10 @@ public function timeout(int $milliseconds): UpsertOptions
77
77
public function expiry ($ seconds ): UpsertOptions
78
78
{
79
79
if ($ seconds instanceof DateTimeInterface) {
80
+ $ this ->expirySeconds = null ;
80
81
$ this ->expiryTimestamp = $ seconds ->getTimestamp ();
81
82
} else {
83
+ $ this ->expiryTimestamp = null ;
82
84
$ this ->expirySeconds = (int )$ seconds ;
83
85
}
84
86
return $ this ;
You can’t perform that action at this time.
0 commit comments