Skip to content

Commit dbb7806

Browse files
fix: modifying readonly property in ServerCapabilities
1 parent 7883cee commit dbb7806

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ServerCapabilities.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,14 @@ public function __construct(
7878
}
7979

8080
if ($resourcesEnabled) {
81-
$this->resources = [];
81+
$resources = [];
8282
if ($resourcesSubscribe) {
83-
$this->resources['subscribe'] = $resourcesSubscribe;
83+
$resources['subscribe'] = $resourcesSubscribe;
8484
}
8585
if ($resourcesListChanged) {
86-
$this->resources['listChanged'] = $resourcesListChanged;
86+
$resources['listChanged'] = $resourcesListChanged;
8787
}
88+
$this->resources = $resources;
8889
} else {
8990
$this->resources = null;
9091
}

0 commit comments

Comments
 (0)