PHP Deprecated Warning – [yii\base\ErrorException](https://www.yiiframework.com/doc-2.0/yii-base-errorexception.html) trim(): Passing null to parameter #1 ($string) of type string is deprecated
in \vendor\kartik-v\yii2-markdown\src\MarkdownEditor.php at line 378
Version 1.3.1 with PHP Version 8.1
If I use the following I got an ErrorException from Yii2
PHP Deprecated Warning – [yii\base\ErrorException](https://www.yiiframework.com/doc-2.0/yii-base-errorexception.html) trim(): Passing null to parameter #1 ($string) of type string is deprecated
in \vendor\kartik-v\yii2-markdown\src\MarkdownEditor.php at line 378
If I change line 378 in MarkdownEditor.php to
if (!is_null($icon) && strlen(trim($icon)) > 0) {
everythings works fine again.Can this be fixed please?
Best regards and thanks for all the smart tools Sarah