mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +00:00
Use ?? instead of ?:
This commit is contained in:
parent
7765eb37b2
commit
490c776bc8
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class InitializeTenancy
|
||||||
{
|
{
|
||||||
public function __construct(Closure $onFail = null)
|
public function __construct(Closure $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