mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 07:34: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
|
class InitializeTenancy
|
||||||
{
|
{
|
||||||
/**
|
/** @var callable */
|
||||||
* @var \Closure
|
|
||||||
*/
|
|
||||||
protected $onFail;
|
protected $onFail;
|
||||||
|
|
||||||
public function __construct(Closure $onFail = null)
|
public function __construct(callable $onFail = null)
|
||||||
{
|
{
|
||||||
$this->onFail = $onFail ?? function ($e) {
|
$this->onFail = $onFail ?? function ($e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue