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:
Leonid Nikitin 2025-02-14 23:33:39 +05:00
parent e3194cef48
commit c112b225dc
Signed by: kor-elf
GPG Key ID: DAB5355A11C22541

View File

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