IsbnToolsService::format() throws php error when tool formatting fails

Created on 2 August 2023, over 1 year ago
Updated 8 April 2024, 7 months ago

When the call to Drupal\isbn\IsbnToolsService::format() fails, the following PHP error is thrown.

TypeError: Drupal\isbn\IsbnToolsService::format(): Return value must be of type ?string, none returned in Drupal\isbn\IsbnToolsService->format() (line 43 of modules/contrib/isbn/src/IsbnToolsService.php).

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇦🇹Austria daniel.pernold

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024