A free open source IT asset/license management system
Fixed phpstan nullsafe method call on non-nullable type
snipe1fa672749a0a
diff --git a/app/SyncAdapters/JumpCloud/JumpCloudAdapter.php b/app/SyncAdapters/JumpCloud/JumpCloudAdapter.phpindex ec50d6a32e..8c7d23098e 100644--- a/app/SyncAdapters/JumpCloud/JumpCloudAdapter.php+++ b/app/SyncAdapters/JumpCloud/JumpCloudAdapter.php@@ -108,7 +108,7 @@ class JumpCloudAdapter extends SyncAdapter// outcome, not a configuration bug. Lower the log level// and keep going. Other 4xx/5xx get warning-level since// they likely need operator attention.- $status = $e->response?->status();+ $status = $e->response->status();if ($status === 403) {Log::channel('sync-adapters')->info($this->name().': API key does not have System Insights permission (403), falling back to V1 /systems fields only.',@@ -118,7 +118,7 @@ class JumpCloudAdapter extends SyncAdapter}Log::channel('sync-adapters')->warning(- $this->name().': V2 System Insights fetch failed (HTTP '.($status ?? 'n/a').'), falling back to V1 /systems fields only.',+ $this->name().': V2 System Insights fetch failed (HTTP '.$status.'), falling back to V1 /systems fields only.',['exception' => $e->getMessage()],);}