From 990533a906f566bdfccffd208c44eaa8e3301172 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 17 Jun 2025 16:11:21 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/cache/CacheChannel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cache/CacheChannel.php b/src/cache/CacheChannel.php index f222b09..4272a99 100644 --- a/src/cache/CacheChannel.php +++ b/src/cache/CacheChannel.php @@ -63,7 +63,7 @@ class CacheChannel extends CapacitorChannel { ]); } - function onCreate($item, array $values, ?array $alwaysNull, ?string $duration=null): ?array { + function onCreate($item, array $row, ?array $alwaysNull, ?string $duration=null): ?array { $now = new DateTime(); $duration ??= $this->duration; return [ @@ -72,7 +72,7 @@ class CacheChannel extends CapacitorChannel { ]; } - function onUpdate($item, array $values, array $pvalues, ?string $duration=null): ?array { + function onUpdate($item, array $row, array $prow, ?string $duration=null): ?array { $now = new DateTime(); $duration ??= $this->duration; return [ @@ -97,9 +97,9 @@ class CacheChannel extends CapacitorChannel { $found = false; $expired = false; $this->each($cacheIds, - function($item, $values) use (&$found, &$expired) { + function($row) use (&$found, &$expired) { $found = true; - $expired = $values["duration"]->isElapsed(); + $expired = $row["duration"]->isElapsed(); }); return !$found || $expired; }