2 Commits
Author SHA1 Message Date
Dave Mc Nicoll 9507a1e596 - fixed a changed interface execute() event 2026-10-22 19:43:31 +00:00
mcndave f197443871 - Fixed setTime return value 2026-10-22 17:28:00 +00:00
2 changed files with 3 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ trait CacheTrait
$this->eventRegister(new class($this->cache, $this->entityCacheKey()) implements Event\Query\Update { $this->eventRegister(new class($this->cache, $this->entityCacheKey()) implements Event\Query\Update {
use Cache\CacheEventTrait; use Cache\CacheEventTrait;
public function execute(RepositoryInterface $repository, object|array $entity, ?array $dataset = null, bool $replace = false): void public function execute(RepositoryInterface $repository, object|array $entity, array $dataset, array $diff, bool $replace = false): void
{ {
$this->purgeCache(); $this->purgeCache();
} }
+2 -2
View File
@@ -26,7 +26,7 @@ trait DatetimeTrait
return $obj; return $obj;
} }
public function setTime($hour, $minute, $second = 0, $microsecond = 0) : \DateTimeInterface public function setTime($hour, $minute, $second = 0, $microsecond = 0) : \DateTime
{ {
$fromParent = parent::setTime($hour, $minute, $second, $microsecond); $fromParent = parent::setTime($hour, $minute, $second, $microsecond);
@@ -65,4 +65,4 @@ trait DatetimeTrait
{ {
return $this; return $this;
} }
} }