Skip to content

Commit

Permalink
fixing apcu_store deprecated use, passing 0 if ttl is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydiablo committed Mar 18, 2024
1 parent f81ec02 commit 38e937e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Cache/Apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function _doContains($id)

protected function _doSave($id, $data, $lifeTime = false)
{
if ($lifeTime === false) {
if ($lifeTime === false || $lifeTime === null) {
$lifeTime = 0;
}

Expand Down

0 comments on commit 38e937e

Please sign in to comment.