Error

处理您的请求时发生错误: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated

错误类型:
Error
错误信息:
htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
文件:
/www/wwwroot/imshimao.com/usr/themes/typecho-theme/archive.php
行号:
220
相关代码:
214// 获取归档文章列表组件参数
215$keywords = $archive_type === 'search' ? ($this->keywords ?? '') : '';
216$params_article_list = ComponentData::GetArchiveListData($this, $archive_type, $category_mid, $keywords);
217
218// 归档页面标题展示
219echo '<div class="archive-header">';
220echo '<h1 class="archive-title">' . htmlspecialchars($archive_title) . '</h1>';
221echo '<p class="archive-description">' . htmlspecialchars($archive_description) . '</p>';
222echo '</div>';
223
224Get::Component($this, 'ArticleList', $params_article_list);
225Get::Component($this, 'Common', ['type' => 'content-column-end']);
226Get::Component($this, 'Common', ['type' => 'sidebar-column-start']);

调用栈:

#0 [internal]:0 → onError()
#1 /www/wwwroot/imshimao.com/usr/themes/typecho-theme/archive.php:220 → htmlspecialchars()
#2 /www/wwwroot/imshimao.com/var/Widget/Archive.php:1390 → require_once()
#3 /www/wwwroot/imshimao.com/var/Typecho/Router.php:88 → render()
#4 /www/wwwroot/imshimao.com/index.php:23 → dispatch()