Skip to content

Commit d06e286

Browse files
committed
Fix PHP < 7.4
1 parent 8fdd9dd commit d06e286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/php/web/Session.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public abstract function destroy();
5353
* @return void
5454
*/
5555
public function cache(string $name, callable $provider, $ttl= null, $time= null) {
56-
$time??= time();
56+
$time ?? $time= time();
5757
if ($cached= $this->value($name)) {
5858
[$stored, $value]= $cached;
5959
if (null === $ttl || $time <= $stored + $ttl) return $value;

0 commit comments

Comments
 (0)