1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 11:14:03 +00:00

Changed Closure on callable

This commit is contained in:
antonkomarev 2019-09-26 15:54:01 +03:00
parent d137293aa5
commit 255bfbcce9

View file

@ -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;