htmlspecialchars error, translation strings mix up
ZBrettonYe opened this issue · 1 comments
ZBrettonYe commented
- LogViewer Version: 7.1.0
- Laravel Version: 7.30.4
- PHP Version: 7.3.28
Description:
Error message:htmlspecialchars() expects parameter 1 to be string, array given
it happened at bootstrap-4/dashboard.blade.php:23
"{{ $item['name'] }}"
It looks like the translation string is mix up with my project's translation string.
Steps To Reproduce:
- create a error.php translation file under resources/lang/en
- file contains
<?php
return [1,2,3,4];
- view the page http://localhost/log-viewer
arcanedev-maroc commented
I think the only way to solve this issue is to rename the error.php
file into something else like errors.php
Or by using Translation Strings As Keys instead