From 47d8f9a1279d2b63ee72f3a0fefcdbb07d8319fe Mon Sep 17 00:00:00 2001 From: Kyrian Obikwelu Date: Fri, 25 Jul 2025 10:27:50 +0100 Subject: [PATCH 1/2] fix: add missing $rootsEnabled parameter to ClientCapabilities constructor --- src/ClientCapabilities.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ClientCapabilities.php b/src/ClientCapabilities.php index f20417a..1b01083 100644 --- a/src/ClientCapabilities.php +++ b/src/ClientCapabilities.php @@ -62,6 +62,7 @@ public static function fromArray(array $data): static } return new static( + $rootsEnabled, $rootsListChanged, $sampling, $data['experimental'] ?? null From 1064d1e813576e517078ec534cbeac7a5aa17057 Mon Sep 17 00:00:00 2001 From: Kyrian Obikwelu Date: Fri, 25 Jul 2025 10:41:08 +0100 Subject: [PATCH 2/2] fix: update condition for rootsListChanged in ClientCapabilities --- src/ClientCapabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientCapabilities.php b/src/ClientCapabilities.php index 1b01083..766f817 100644 --- a/src/ClientCapabilities.php +++ b/src/ClientCapabilities.php @@ -28,7 +28,7 @@ public function toArray(): array $data = []; if ($this->roots || $this->rootsListChanged) { $data['roots'] = new \stdClass(); - if ($this->rootsListChanged) { + if ($this->rootsListChanged !== null) { $data['roots']->listChanged = $this->rootsListChanged; } }