From 0081726bda333d2c240605ba8f7832276a98bbed Mon Sep 17 00:00:00 2001 From: Anton Komarev <1849174+antonkomarev@users.noreply.github.com> Date: Thu, 26 Sep 2019 15:35:02 +0300 Subject: [PATCH] Add exceptions missing parent constructor call (#137) --- src/Exceptions/DatabaseManagerNotRegisteredException.php | 2 +- src/Exceptions/TenantCouldNotBeIdentifiedException.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Exceptions/DatabaseManagerNotRegisteredException.php b/src/Exceptions/DatabaseManagerNotRegisteredException.php index 8af2f5e1..e93c31a1 100644 --- a/src/Exceptions/DatabaseManagerNotRegisteredException.php +++ b/src/Exceptions/DatabaseManagerNotRegisteredException.php @@ -8,6 +8,6 @@ class DatabaseManagerNotRegisteredException extends \Exception { public function __construct($driver) { - $this->message = "Database manager for driver $driver is not registered."; + parent::__construct("Database manager for driver $driver is not registered."); } } diff --git a/src/Exceptions/TenantCouldNotBeIdentifiedException.php b/src/Exceptions/TenantCouldNotBeIdentifiedException.php index a25d8ddb..fbebcd10 100644 --- a/src/Exceptions/TenantCouldNotBeIdentifiedException.php +++ b/src/Exceptions/TenantCouldNotBeIdentifiedException.php @@ -12,7 +12,7 @@ class TenantCouldNotBeIdentifiedException extends \Exception implements Provides { public function __construct($domain) { - $this->message = "Tenant could not be identified on domain $domain"; + parent::__construct("Tenant could not be identified on domain $domain"); } public function getSolution(): Solution