mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:34:04 +00:00
Update variable & syntax
This commit is contained in:
parent
d7d6007c7f
commit
c310e1df40
1 changed files with 3 additions and 3 deletions
|
|
@ -20,10 +20,10 @@ class CacheManager extends BaseCacheManager
|
||||||
$tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()];
|
$tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()];
|
||||||
|
|
||||||
if ($method === 'tags') {
|
if ($method === 'tags') {
|
||||||
$parameter_count = count($parameters);
|
$count = count($parameters);
|
||||||
|
|
||||||
if ($parameter_count !== 1) {
|
if ($count !== 1) {
|
||||||
throw new \Exception("Method tags() takes exactly 1 argument. {$parameter_count} passed.");
|
throw new \Exception("Method tags() takes exactly 1 argument. $count passed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$names = $parameters[0];
|
$names = $parameters[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue