Skip to content

Commit

Permalink
make doSaveDependingOnFiles() nullable again
Browse files Browse the repository at this point in the history
addresses Kdyby#23
  • Loading branch information
dfx413 committed Dec 2, 2019
1 parent 5379f5b commit b547363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ protected function doSave($id, $data, $lifeTime = 0): bool
* @param string[] $files
* @param int $lifeTime
*/
protected function doSaveDependingOnFiles(string $id, $data, array $files, int $lifeTime = 0): bool
protected function doSaveDependingOnFiles(string $id, $data, array $files, int $lifeTime = null): bool
{
$lifeTime = (int) $lifeTime;
$dp = [NCache::TAGS => ['doctrine'], NCache::FILES => $files];
if ($lifeTime > 0) {
$dp[NCache::EXPIRE] = time() + $lifeTime;
Expand Down

0 comments on commit b547363

Please sign in to comment.