Update byTag method to specify void return type

Added an explicit void return type to the byTag method for clarity and strict type enforcement.
This commit is contained in:
2025-02-14 23:33:39 +05:00
parent e3194cef48
commit c112b225dc

View File

@@ -6,7 +6,7 @@ use App\Enums\CacheTag;
final readonly class ClearCacheCommandHandler final readonly class ClearCacheCommandHandler
{ {
public function byTag(CacheTag $tag) public function byTag(CacheTag $tag): void
{ {
$tag->getCache()->flush(); $tag->getCache()->flush();
} }