Skip to content

Commit

Permalink
Merge pull request #415 from brutto/main
Browse files Browse the repository at this point in the history
Fix deprecation error on php 8.1
  • Loading branch information
tedivm authored Jul 26, 2022
2 parents 70767dc + e02ac18 commit a2c9df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stash/Driver/Sub/Memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function get($key)
*/
public function cas($key, $value)
{
$token = null;
$token = 0;
if (($rValue = $this->memcached->get($key, null, $token)) !== false) {
return $rValue;
}
Expand Down

0 comments on commit a2c9df1

Please sign in to comment.