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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user