This commit is contained in:
2021-02-23 14:54:47 +08:00
parent 5431a1de6c
commit 7dcfd45986
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ use Snowflake\Snowflake;
#[Pure] public function __construct(public string|array $interceptor)
{
if (is_string($this->interceptor)) {
$this->interceptor = [];
$this->interceptor = [$this->interceptor];
}
}