Skip to content

A free open source IT asset/license management system

fix phpstan erros

Godfrey Mf46ba40ad87b
diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php
index 3df7dc0a93..c74d5d03a1 100644
--- a/app/Listeners/CheckoutableListener.php
+++ b/app/Listeners/CheckoutableListener.php
@@ -657,7 +657,7 @@ class CheckoutableListener
{
$companyId = match (true) {
$checkoutable instanceof LicenseSeat => $checkoutable->license->company_id,
- default => $checkoutable->company_id,
+ default => $checkoutable->getAttribute('company_id'),
};
if ($companyId) {
diff --git a/app/Livewire/IntegrationSettingsForm.php b/app/Livewire/IntegrationSettingsForm.php
index c8009af39b..06b3cf7c6b 100644
--- a/app/Livewire/IntegrationSettingsForm.php
+++ b/app/Livewire/IntegrationSettingsForm.php
@@ -176,7 +176,7 @@ class IntegrationSettingsForm extends Component
$this->teams_webhook_deprecated = filled($this->webhook_endpoint)
&& !Str::contains($this->webhook_endpoint, 'workflows');
- $this->warning = $this->webhook_selected === 'microsoft' && $this->teams_webhook_deprecated
+ $this->warning = $this->teams_webhook_deprecated
? trans('admin/settings/message.webhook.ms_teams_deprecation')
: null;
}