diff --git a/README.md b/README.md index 0fd881a7..25c5b4e6 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![Laravel 5.8](https://img.shields.io/badge/laravel-5.8-red.svg)](https://laravel.com) [![Latest Stable Version](https://poser.pugx.org/stancl/tenancy/version)](https://packagist.org/packages/stancl/tenancy) -[![Travis CI build](https://travis-ci.com/stancl/tenancy.svg?branch=master)](https://travis-ci.com/stancl/tenancy) -[![codecov](https://codecov.io/gh/stancl/tenancy/branch/master/graph/badge.svg)](https://codecov.io/gh/stancl/tenancy) +[![Travis CI build](https://travis-ci.com/stancl/tenancy.svg?branch=1.x)](https://travis-ci.com/stancl/tenancy) +[![codecov](https://codecov.io/gh/stancl/tenancy/branch/1.x/graph/badge.svg)](https://codecov.io/gh/stancl/tenancy) ### *A Laravel multi-database tenancy package that respects your code.* diff --git a/composer.json b/composer.json index 59ee0810..1bd0a0aa 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,6 @@ }, "require-dev": { "vlucas/phpdotenv": "^3.3", - "psy/psysh": "@stable", "laravel/framework": "5.8.*", "orchestra/testbench": "~3.8", "league/flysystem-aws-s3-v3": "~1.0", diff --git a/src/Middleware/InitializeTenancy.php b/src/Middleware/InitializeTenancy.php index 3c37360a..10f41819 100644 --- a/src/Middleware/InitializeTenancy.php +++ b/src/Middleware/InitializeTenancy.php @@ -8,7 +8,7 @@ class InitializeTenancy { public function __construct(Closure $onFail = null) { - $this->onFail = $onFail ?: function ($e) { + $this->onFail = $onFail ?? function ($e) { throw $e; }; }