A free open source IT asset/license management system
Remove optional qualifier
snipe14b9c06d774f
diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.phpindex f80f16eb32..db0c54724d 100644--- a/app/Listeners/CheckoutableListener.php+++ b/app/Listeners/CheckoutableListener.php@@ -128,7 +128,7 @@ class CheckoutableListener->notify($this->getCheckoutNotification($event, $acceptance));}} catch (ClientException $e) {- $status = optional($e->getResponse()->getStatusCode());+ $status = $e->getResponse()->getStatusCode();if (strpos($e->getMessage(), 'channel_not_found') !== false) {Log::warning(Setting::getSettings()->webhook_selected . " notification failed: " . $e->getMessage());@@ -231,7 +231,7 @@ class CheckoutableListener->notify($this->getCheckinNotification($event));}} catch (ClientException $e) {- $status = optional($e->getResponse()->getStatusCode());+ $status = $e->getResponse()->getStatusCode();if (strpos($e->getMessage(), 'channel_not_found') !== false) {Log::warning(Setting::getSettings()->webhook_selected . " notification failed: " . $e->getMessage());