mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 04:14:03 +00:00
Changed Closure on callable
This commit is contained in:
parent
d137293aa5
commit
255bfbcce9
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue