Html::decodeEntities() must be of the type string

Created on 17 February 2023, over 1 year ago
Updated 16 March 2023, over 1 year ago

I got the error:
TypeError: Return value of Drupal\Component\Utility\Html::decodeEntities() must be of the type string, null returned in /var/www/html/web/core/lib/Drupal/Component/Utility/Html.php on line 390 #0 /var/www/html/web/modules/contrib/tmgmt_deepl/src/Plugin/tmgmt/Translator/DeeplTranslator.php(301)
We should add a condition before decoding, because the string is not always transmitted, in my case it is an array.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain dima.iluschenko Malaga

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024