1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00

Use ?? instead of ?:

This commit is contained in:
Samuel Štancl 2019-08-10 14:43:37 +02:00 committed by GitHub
parent 7765eb37b2
commit 490c776bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ class InitializeTenancy
{
public function __construct(Closure $onFail = null)
{
$this->onFail = $onFail ?: function ($e) {
$this->onFail = $onFail ?? function ($e) {
throw $e;
};
}