Handler doExecution return type too strict

Created on 21 September 2024, 7 months ago

Problem/Motivation

With 3.x, I'm seeing this error when returning a bool from a JSON-RPC method:

Exception TypeError: "Drupal\jsonrpc\Handler::doExecution(): Return value must be of type Drupal\jsonrpc\JsonRpcObject\Response|array|string|int|null, true returned" at /var/www/html/web/modules/contrib/jsonrpc/src/Handler.php line 194

However, I think this should be acceptable. I've posted to the JSON-RPC mailing list and will confirm.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇯🇵Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024