KQL plugin fatal error with Kirby 4

Hi there,

I already used the KQL plugin with Kirby 3 but I can’t get it to work with a project based on Kirby 4.

The code bellow throws a fatal error : Access level to Kirby\\Kql\\Query::resolve() must be public (as in class Kirby\\Query\\Query).

I know that it’s not recommended to change the source code but just to try, I changed the resolve() method from protected to public, then it throws another error : Declaration of Kirby\\Kql\\Query::resolve(string $query) must be compatible with Kirby\\Query\\Query::resolve(object|array $data = []): mixed.

Both Kirby and the KQL plugin are up to date.

const user = "xxxxxx.xxxxxx@xxxx.xxx";
const password = "XXXXXX";
const token = btoa(`${user}:${password}`);
const headers = {
  Authorization: `Basic ${token}`,
};

const request = {
  method: "post",
  body: JSON.stringify({
    query: "page('numeros')",
  }),
  headers: {
    Authorization: `Basic ${token}`,
  },
};

fetch("/api/query", request)
  .then((res) => {
    return res.text();
  })
  .then((json) => {
    console.log(json)
  });

Any idea ?

Installing manually the KQL plugin instead of using composer solved the problem.