Commit bab5c4d7 authored by Gert's avatar Gert

Fix intitialization when params were passed, but without configuration

parent e4dceeb9
Pipeline #82220299 passed with stages
in 9 minutes and 13 seconds
## 5.0.0 (Unreleased)
* Fix PHP error when initialization options were passed, but without a configuration
* See also the release notes for versions [5.0.0-RC](https://gitlab.com/Serenata/Serenata/-/tags/5.0.0-RC), [5.0.0-RC2](https://gitlab.com/Serenata/Serenata/-/tags/5.0.0-RC2), [5.0.0-RC3](https://gitlab.com/Serenata/Serenata/-/tags/5.0.0-RC3) and [5.0.0-RC4](https://gitlab.com/Serenata/Serenata/-/tags/5.0.0-RC4).
## 5.0.0-RC4
......
......@@ -176,7 +176,7 @@ final class InitializeJsonRpcQueueItemHandler extends AbstractJsonRpcQueueItemHa
$configuration = $initializationOptions['configuration'] ?? null;
if ($initializationOptions === null) {
if ($configuration === null) {
$configuration = $this->getDefaultProjectConfiguration($rootUri);
$request = new JsonRpcRequest(null, 'serenata/internal/echoMessage', [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment