1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:44:03 +00:00

Specify namespace on global functions (fix #35) (#36)

* Specify namespace on global functions (fix #35)

* merge

* Revert some \ additions

* small fixes
This commit is contained in:
Samuel Štancl 2019-04-24 17:33:41 +02:00 committed by GitHub
parent 35abb6191d
commit 97ec172fd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 12 deletions

View file

@ -11,7 +11,7 @@ class CacheManager extends BaseCacheManager
$tags = [config('tenancy.cache.tag_base') . tenant('uuid')];
if ($method === "tags") {
if (count($parameters) !== 1) {
if (\count($parameters) !== 1) {
throw new \Exception("Method tags() takes exactly 1 argument. {count($parameters)} passed.");
}