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:
parent
e3194cef48
commit
c112b225dc
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user