diff --git a/src/Middleware/InitializeTenancy.php b/src/Middleware/InitializeTenancy.php index 87636da3..4303ab39 100644 --- a/src/Middleware/InitializeTenancy.php +++ b/src/Middleware/InitializeTenancy.php @@ -9,12 +9,10 @@ use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException; class InitializeTenancy { - /** - * @var \Closure - */ + /** @var callable */ protected $onFail; - public function __construct(Closure $onFail = null) + public function __construct(callable $onFail = null) { $this->onFail = $onFail ?? function ($e) { throw $e;